LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-24.c
blobb74acb840c7cad116785bfbf56fe5bc45bb1ca06
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf" } */
4 struct A
6 int a, b, c, d;
7 };
9 struct B
11 int x, y, z;
14 __attribute__ ((noinline))
15 int foo(struct A *a)
17 a->c = 1;
19 return 123;
22 __attribute__ ((noinline))
23 int bar(struct B *b)
25 b->z = 1;
27 return 123;
30 int main()
32 return foo(0) + bar(0);
35 /* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */