Add _FloatN, _FloatNx tests for __builtin_fpclassify.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr70740.c
blob5bf8e4adc917ffc0d8043f980b9e8cac744053b4
1 /* { dg-do compile } */
3 extern int foo (void);
4 extern void *memcpy (void *, const void *, __SIZE_TYPE__);
6 struct
8 char a[6];
9 } d;
10 struct
12 int a1[0];
13 int a2[0];
14 int a3[0];
15 int a4[];
16 } a, c;
17 int b;
19 int *
20 bar ()
22 if (b)
23 return a.a4;
24 return a.a2;
27 void
28 baz ()
30 int *e, *f;
31 if (foo ())
32 e = c.a3;
33 else
34 e = c.a1;
35 memcpy (d.a, e, 6);
36 f = bar ();
37 memcpy (d.a, f, 1);