summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20080502-1.c
blob: ed9b2085e8e5ed3b89896b199b07e4f2a74b6100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR target/36090 */

extern void abort (void);

long double __attribute__ ((noinline)) foo (long double x)
{
  return __builtin_signbit (x) ? 3.1415926535897932384626433832795029L : 0.0;
}

int
main (void)
{
  if (foo (-1.0L) != 3.1415926535897932384626433832795029L)
    abort ();
  return 0;
}