[cfe-commits] r78959 - /cfe/trunk/test/CodeGenCXX/virt.cpp
Mike Stump
mrs at apple.com
Thu Aug 13 16:33:29 PDT 2009
Author: mrs
Date: Thu Aug 13 18:33:29 2009
New Revision: 78959
URL: http://llvm.org/viewvc/llvm-project?rev=78959&view=rev
Log:
Add testcase for recent work.
Modified:
cfe/trunk/test/CodeGenCXX/virt.cpp
Modified: cfe/trunk/test/CodeGenCXX/virt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/virt.cpp?rev=78959&r1=78958&r2=78959&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/virt.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/virt.cpp Thu Aug 13 18:33:29 2009
@@ -101,6 +101,14 @@
// CEHCK-LP32: .zerofill __DATA, __common, _d6, 2012, 4
// CHECK-LP64: .zerofill __DATA, __common, _d6, 2024, 4
+struct test7_B2 { virtual void funcB2(); };
+struct test7_B1 : virtual test7_B2 { virtual void funcB1(); };
+
+struct test7_D : test7_B2, virtual test7_B1 {
+};
+
+// CEHCK-LP32: .zerofill __DATA, __common, _d7, 8, 3
+// CHECK-LP64: .zerofill __DATA, __common, _d7, 16, 3
struct test3_B3 { virtual void funcB3(); };
@@ -381,7 +389,9 @@
// CHECK-LP64: .quad __ZN2D14bar5Ev
-test6_D d6;
test5_D d5;
test4_D d4;
test3_D d3;
+
+test6_D d6;
+test7_D d7;
More information about the cfe-commits
mailing list