1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-02-16 00:33:10 +00:00
llvm-6502/test/C++Frontend/2003-08-31-StructLayout.cpp

15 lines
276 B
C++
Raw Normal View History

// There is a HOLE in the derived2 object due to not wanting to place the two
// baseclass instances at the same offset!
struct baseclass {};
class derived1 : public baseclass {
void * NodePtr;
};
class derived2 : public baseclass {
derived1 current;
};
derived2 RI;