OSDN Git Service

2012-04-13 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20001012-1.c
1 /* { dg-do run { target fpic } } */
2 /* { dg-options "-O2 -fpic" } */
3
4 extern void abort (void);
5 extern void exit (int);
6
7 double
8 foo (void)
9 {
10   return (__extension__ ((union { unsigned __l __attribute__((__mode__(__SI__))); float __d; }) { __l: 0x3f800000UL }).__d);
11 }
12
13 main ()
14 {
15   if (foo() != 1.0)
16     abort ();
17   exit (0);
18 }