gcc/libvtv/testsuite/libvtv.cc/mul_inh.cc
Caroline Tice 41e96dc8f0 Update libvtv testsuite so that most of the tests now run under
the dejagnu test harness.

From-SVN: r202373
2013-09-08 16:35:14 -07:00

28 lines
272 B
C++

// { 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;
}