Implement C _FloatN, _FloatNx types.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr52530.c
blobf7cdf1a63b3f2bfd784ed53b022dd229147eb09f
1 /* { dg-do run } */
3 extern void abort (void);
5 #if __SIZEOF_INT__ > 2
6 struct foo
8 int *f;
9 int i;
12 int baz;
13 #else
14 struct foo
16 long *f;
17 long i;
20 long baz;
21 #endif
23 void __attribute__ ((noinline))
24 bar (struct foo x)
26 *(x.f) = x.i;
29 int
30 main ()
32 struct foo x = { &baz, 0xdeadbeef };
34 bar (x);
36 if (baz != 0xdeadbeef)
37 abort ();
39 return 0;