blob: 57321626e9125647f942809e8987f9fe2bd70cc0 [file] [log] [blame]
// { dg-do run { target c++11 } }
#include <cassert>
int count = 0;
struct VB
{
VB() {++count;}
};
struct B : virtual VB
{
B() : B(42) {}
B(int) {}
};
struct D : B
{
D() {}
D(int) : D() {}
};
int main()
{
D d{42};
assert(count == 1);
}