mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-12 11:29:30 +00:00
28 lines
272 B
C++
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;
|
||
|
}
|