Rebase.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20001012-1.c
blobeda69c0296fcd6911f26c142bb8c1df79dc89d62
1 /* { dg-do run { target fpic } } */
2 /* { dg-options "-O2 -fpic" } */
4 extern void abort (void);
5 extern void exit (int);
7 double
8 foo (void)
10 return (__extension__ ((union { unsigned __l __attribute__((__mode__(__SI__))); float __d; }) { __l: 0x3f800000UL }).__d);
13 main ()
15 if (foo() != 1.0)
16 abort ();
17 exit (0);