URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [vtable3.C] - Rev 384
Compare with Previous | Blame | View Log
// { dg-do run }
// 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" int printf (const char *, ...);
struct A {
};
struct B : virtual A {
public:
int b;
};
int main()
{
B blist[10];
printf ("PASS\n");
}