diff --git a/test/C++Frontend/2003-08-31-StructLayout.cpp b/test/C++Frontend/2003-08-31-StructLayout.cpp new file mode 100644 index 00000000000..78d8d33e874 --- /dev/null +++ b/test/C++Frontend/2003-08-31-StructLayout.cpp @@ -0,0 +1,14 @@ +// 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;