blob: 2ae336e42a34a5efcfea58b0363ecad80c34e524 [file] [log] [blame]
// PR c++/56237
// { dg-do compile }
void *p[4];
void
foo ()
{
static union { } u;
p[0] = &u;
{
static union { } u;
p[1] = &u;
{
static union { } u;
p[2] = &u;
}
}
{
static union { } u;
p[3] = &u;
}
}
// { dg-final { scan-assembler "_ZZ3foovE1u\[^_\]" } }
// { dg-final { scan-assembler "_ZZ3foovE1u_0" } }
// { dg-final { scan-assembler "_ZZ3foovE1u_1" } }
// { dg-final { scan-assembler "_ZZ3foovE1u_2" } }