summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/vtable3.C
blob: fc837174a2fc2ed7e0cab929f2c6749835d29c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { 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");
}