[llvm-commits] CVS: llvm/test/Regression/C++Frontend/CompileFail/2003-08-31-StructLayout.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 31 01:54:00 PDT 2003
Changes in directory llvm/test/Regression/C++Frontend/CompileFail:
2003-08-31-StructLayout.cpp added (r1.1)
---
Log message:
New testcase for annoying structure layout stuff!
---
Diffs of the changes:
Index: llvm/test/Regression/C++Frontend/CompileFail/2003-08-31-StructLayout.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/CompileFail/2003-08-31-StructLayout.cpp:1.1
*** /dev/null Sun Aug 31 01:53:15 2003
--- llvm/test/Regression/C++Frontend/CompileFail/2003-08-31-StructLayout.cpp Sun Aug 31 01:53:05 2003
***************
*** 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;
More information about the llvm-commits
mailing list