blob: 870035c1a9b22457c31a688465aa9207f2622837 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-icf -fno-inline" } */
struct str
{
unsigned a:1, b:1;
};
static struct str test;
unsigned foo(struct str *s)
{
return s->a;
}
unsigned bar(struct str *s)
{
return s->b;
}
int main()
{
test.a = 0;
test.b = 1;
return foo (&test) != bar (&test);
}
/* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */