Retro68/gcc/libvtv/testsuite/libvtv.cc/mul_inh.cc

28 lines
272 B
C++
Raw Normal View History

2014-09-21 17:33:12 +00:00
// { dg-do run }
extern "C" int printf(const char *, ...);
struct A {
virtual ~A() {}
};
struct B {
virtual ~B() {}
};
struct C: public A {
virtual ~C() {}
};
struct D: public C, B {
virtual ~D() {}
};
D d;
int main()
{
printf ("%p\n", &d);
return 0;
}