PR libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-28.c
blobbcaf84e09fba4ed9fee869df2d4afece76c2e11e
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 "attribute values are different" "icf" } } */
24 /* { dg-final { cleanup-ipa-dump "icf" } } */