Tanya Lattner | d13e0ae | 2004-11-06 22:29:57 +0000 | [diff] [blame] | 1 | // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null |
| 2 | |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 3 | // There is a HOLE in the derived2 object due to not wanting to place the two |
Chris Lattner | 483cb51 | 2003-08-31 06:53:05 +0000 | [diff] [blame] | 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; |