blob: a45ad030e3cccbdaa2c01146f96709eeef5cc1b9 [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
Tanya Lattnerd13e0ae2004-11-06 22:29:57 +00002
Misha Brukmanfd939082005-04-21 23:48:37 +00003// There is a HOLE in the derived2 object due to not wanting to place the two
Chris Lattner483cb512003-08-31 06:53:05 +00004// baseclass instances at the same offset!
5
6struct baseclass {};
7
8class derived1 : public baseclass {
9 void * NodePtr;
10};
11
12class derived2 : public baseclass {
13 derived1 current;
14};
15
16derived2 RI;