blob: 216e2559e28dd1a0f3a989a0c85e41e48edd85cb [file] [log] [blame]
/* { dg-do compile { target init_priority } } */
/* { dg-options "-O2 -fdump-ipa-icf-details -fno-inline" } */
__attribute__ ((noinline, constructor(200)))
int foo()
{
return 123;
}
__attribute__ ((noinline, constructor(400)))
int bar()
{
return 123;
}
int main()
{
foo() + bar();
return 0;
}
/* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */
/* { dg-final { scan-ipa-dump "different decl attributes" "icf" } } */