mangle-local-classes-nested.cpp [plain text]
void L1() {
{
struct S {
void L2() {
{
struct S {
void L3a() {}
};
S().L3a();
}
{
struct S {
void L3b() {}
};
S().L3b();
}
}
};
S().L2();
}
{
struct S {
void L2() {
{
struct S {
void L3c() {}
};
S().L3c();
}
{
struct S {
void L3d() {}
};
S().L3d();
}
}
};
S().L2();
}
}
void F() {
struct S {
struct T {
struct S {
struct T {
void G() {}
};
};
};
};
S::T::S::T().G();
}
struct B { virtual void Foo() = 0; };
void G(const B &);
void H() {
struct S {
void I() {
struct S : B {
virtual void Foo() {}
};
G(S());
}
};
S().I();
}