2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr39903-2.c
blob0cd74029b6dbec937124065ef6c43d9d0fd85122
1 /* PR target/39903 */
2 /* { dg-do run } */
3 /* { dg-options "-Wno-psabi" } */
5 struct X {
6 float d;
7 float b[];
8 };
10 struct X __attribute__((noinline))
11 foo (float d)
13 struct X x;
14 x.d = d;
15 return x;
17 extern void abort (void);
18 int main()
20 struct X x = foo(3.0);
21 if (x.d != 3.0)
22 abort ();
23 return 0;