c++: prev declared hidden tmpl friend inst [PR112288]
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / pr68790.c
blob258c0043867063911dce20dfecf6a999cd80db3f
1 /* { dg-do run } */
2 /* { dg-options "-O0 -fipa-icf -fdump-ipa-icf" } */
4 struct S
6 int a;
7 };
9 int
10 foo3 (struct S x, struct S y, struct S z)
12 if (z.a != 9)
13 __builtin_abort ();
14 return 0;
17 int
18 bar3 (struct S x, struct S y, struct S z)
20 return foo3 (y, x, z);
23 int
24 baz3 (struct S x, struct S y, struct S z)
26 return foo3 (y, z, x);
29 int
30 main (void)
32 struct S
33 a = { 3 },
34 b = { 6 },
35 c = { 9 };
37 return bar3 (b, a, c);
40 /* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */