LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-4.c
blob3e0bb243587d5ad4efb4739bef45880a2012b9dd
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf" } */
4 __attribute__ ((noinline))
5 int foo(int a)
7 return a * a;
10 __attribute__ ((noinline))
11 int bar(int b)
13 return b;
16 __attribute__ ((noinline))
17 void caller(int x)
19 return;
22 int main(int argc, char **argv)
24 caller(foo(argc));
25 caller(bar(argc));
27 return 123;
30 /* { dg-final { scan-ipa-dump-not "Semantic equality hit:" "icf" } } */
31 /* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */