2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20001012-2.c
blob32dc27c59fa01aed3761cda7c5803fab0891132d
1 /* { dg-do run { target fpic } } */
2 /* { dg-options "-O2 -fpic" } */
4 extern void abort (void);
5 extern void exit (int);
7 void foo (char *x, const char *y, ...)
11 double bar (const char *x, long y)
13 return 0.0;
16 typedef __SIZE_TYPE__ size_t;
17 extern size_t strlen (const char *);
19 double baz (const char *x)
21 if (x[0] != '\0')
23 char y[6 + strlen (x)];
24 foo (y, "FOO", x);
25 return bar (y, 0);
28 return (__extension__ ((union { unsigned __l __attribute__((__mode__(__SI__))); float __d; }) { __l: 0x3f800000UL }).__d);
31 main ()
33 if (baz("") != 1.0)
34 abort ();
35 exit (0);