| Chris Lattner | 483cb51 | 2003-08-31 06:53:05 +0000 | [diff] [blame] | 1 | // There is a HOLE in the derived2 object due to not wanting to place the two |
| 2 | // baseclass instances at the same offset! | ||||
| 3 | |||||
| 4 | struct baseclass {}; | ||||
| 5 | |||||
| 6 | class derived1 : public baseclass { | ||||
| 7 | void * NodePtr; | ||||
| 8 | }; | ||||
| 9 | |||||
| 10 | class derived2 : public baseclass { | ||||
| 11 | derived1 current; | ||||
| 12 | }; | ||||
| 13 | |||||
| 14 | derived2 RI; | ||||