8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/vtable3.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

25 lines
425 B
C

// GROUPS passed vtable
// vtable file
// From: Pete Bevin <pete@deng.icl.co.uk>
// Date: Mon, 28 Nov 1994 19:57:53 +0000 (GMT)
// Subject: g++-2.6.2: Virtual inheritance causes incorrect padding
// Message-ID: <Pine.SOL.3.91.941128194453.7510A-100000@gabriel>
extern "C" void printf (char *, ...);
struct A {
};
struct B : virtual A {
public:
int b;
};
main()
{
B blist[10];
printf ("PASS\n");
}