OSDN Git Service

* gcc.dg/Warray-bounds.c: XFAIL test on 32-bit hppa targets.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20001012-1.c
1 /* { dg-do run { target sparc*-*-* } } */
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 }