LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-28.c
blob216e2559e28dd1a0f3a989a0c85e41e48edd85cb
1 /* { dg-do compile { target init_priority } } */
2 /* { dg-options "-O2 -fdump-ipa-icf-details -fno-inline" } */
4 __attribute__ ((noinline, constructor(200)))
5 int foo()
7 return 123;
10 __attribute__ ((noinline, constructor(400)))
11 int bar()
13 return 123;
16 int main()
18 foo() + bar();
20 return 0;
22 /* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */
23 /* { dg-final { scan-ipa-dump "different decl attributes" "icf" } } */