2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr39903-1.c
blob1a67dd79538d01594d68602818835dff811c3d95
1 /* PR target/39903 */
2 /* { dg-do run } */
3 /* { dg-options "-Wno-psabi" } */
5 struct X {
6 double d;
7 double b[];
8 };
10 struct X __attribute__((noinline))
11 foo (double 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;