c++: prev declared hidden tmpl friend inst [PR112288]
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / pr103227-2.c
blobe4f3c71533151a81b978f9e66f86f5d7728bf20d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized-slim" } */
4 struct S
6 int a, b, c;
7 };
9 int ellide (int c);
11 static void __attribute__ ((noinline))
12 foo (struct S s)
14 int c = s.c;
15 if (c != 21)
16 ellide (c);
19 void
20 entry (void)
22 struct S s;
23 s.a = 1;
24 s.b = 64;
25 s.c = 21;
26 foo (s);
29 /* { dg-final { scan-tree-dump-not "ellide" "optimized" } } */