summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/signbit-sa.c
blob: 3d273a3a2f79d5ba1f593c74a4a50b05a0a31d9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Some versions of Solaris <math.h> give strict-aliasing warnings for
   signbit.  */
/* { dg-require-effective-target c99_runtime } */
/* { dg-options "-std=c99 -O2 -Wstrict-aliasing" } */

#include <math.h>

int
main (void)
{
  return signbit (1.0f) | signbit (1.0) | signbit (1.0l);;
}