LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / pr61986.c
blob8d2f658b87cd6e55ea4cf2a0f6d68ce02b20b755
1 /* { dg-do compile } */
2 /* { dg-options "-O3" } */
4 int a, b, c;
6 struct S
8 int f0;
9 int f1;
10 } d;
12 static int fn2 (struct S);
13 void fn3 (struct S);
15 void
16 fn1 (struct S p)
18 struct S h = { 0, 0 };
19 fn3 (p);
20 fn2 (h);
23 int
24 fn2 (struct S p)
26 struct S j = { 0, 0 };
27 fn3 (p);
28 fn2 (j);
29 return 0;
32 void
33 fn3 (struct S p)
35 for (; b; a++)
36 c = p.f0;
37 fn1 (d);
40 void
41 fn4 ()
43 for (;;)
45 struct S f = { 0, 0 };
46 fn1 (f);