Dan Gohman | 2d65d35 | 2009-08-25 15:38:29 +0000 | [diff] [blame] | 1 | // RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 2 | |
3 | // There is a HOLE in the derived2 object due to not wanting to place the two | ||||
4 | // baseclass instances at the same offset! | ||||
5 | |||||
6 | struct baseclass {}; | ||||
7 | |||||
8 | class derived1 : public baseclass { | ||||
9 | void * NodePtr; | ||||
10 | }; | ||||
11 | |||||
12 | class derived2 : public baseclass { | ||||
13 | derived1 current; | ||||
14 | }; | ||||
15 | |||||
16 | derived2 RI; |