Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / gcc.dg / 20040625-1.c
blobbbda6fd05fc0aa42aefb8beda2819ce41517e4b1
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
3 /* { dg-options "-mminimal-toc" { target powerpc64-*-* powerpc-ibm-aix* } } */
5 extern void abort (void);
6 extern void exit (int);
8 double __attribute__((noinline))
9 foo (void)
11 return 16441577472.0;
14 double __attribute__((noinline))
15 bar (double x)
17 return x;
20 int __attribute__((noinline))
21 test (void)
23 double x = foo ();
24 x = bar (x);
25 x /= 1024L * 1024L * 1024L;
26 x *= 70;
27 x = x < 70 ? x : 70;
28 x += 30;
29 return x;
32 int main (void)
34 if (test () != 100)
35 abort ();
36 exit (0);