blob: 68ccad908c8b671459dd16d6f850a51effa17d13 [file] [log] [blame]
// PR c++/55922
// { dg-do run { target c++11 } }
bool called = false;
struct Base {
Base() { if (called) throw 1; called = true; }
};
struct B1 : virtual Base {
B1() { }
};
struct C : B1, virtual Base {
C() : B1{}
{ }
};
int main() {
C c;
}