2009-08-25 23:38:29 +08:00
|
|
|
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
|
2004-11-07 06:29:57 +08:00
|
|
|
|
2005-04-22 07:48:37 +08:00
|
|
|
// There is a HOLE in the derived2 object due to not wanting to place the two
|
2003-08-31 14:53:05 +08:00
|
|
|
// baseclass instances at the same offset!
|
|
|
|
|
|
|
|
struct baseclass {};
|
|
|
|
|
|
|
|
class derived1 : public baseclass {
|
|
|
|
void * NodePtr;
|
|
|
|
};
|
|
|
|
|
|
|
|
class derived2 : public baseclass {
|
|
|
|
derived1 current;
|
|
|
|
};
|
|
|
|
|
|
|
|
derived2 RI;
|