blob: 74139a877297dcd213a77fc9e1b972506ef467f5 [file] [log] [blame]
// PR c++/41611
// Test that the guard gets its own COMDAT group.
// { dg-final { scan-assembler "_ZGVZN1A1fEvE1i,comdat" { target *-*-linux* *-*-gnu* *-*-uclinux* } } }
struct A {
static int f()
{
static int &i = *new int();
return i;
}
};
int main()
{
return A::f();
}