* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr47428.c
blob3cd7bfdf56e27ac24cf121ff7d2642c560c3055c
1 /* PR tree-optimization/47428 */
2 /* { dg-require-effective-target untyped_assembly } */
4 struct S
6 int s;
7 } a;
8 int b;
10 void bar (struct S);
12 int
13 baz (int x __attribute__((unused)), int y)
15 int i;
16 for (i = 0; i < 1; i = 1)
17 for (y = 0; y < 1; y = 1);
18 return y;
21 void
22 foo (void)
24 fn (0);
27 int
28 fn (const int x, int y __attribute__((unused)))
30 if (baz (baz (0, x), 0))
31 return 0;
32 else
33 bar (a);
34 return 0;
37 void
38 bar (struct S x)
40 for (;;)
41 for (; x.s;)
42 b = 0 ? : baz (0, 0);