]> granicus.if.org Git - clang/commitdiff
Add testcase for recent work.
authorMike Stump <mrs@apple.com>
Thu, 13 Aug 2009 23:33:29 +0000 (23:33 +0000)
committerMike Stump <mrs@apple.com>
Thu, 13 Aug 2009 23:33:29 +0000 (23:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78959 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/virt.cpp

index eb1c83940ac2059d583b6a3054ef162f7a66c4cf..e2fded291a4cba7a5c9abed0f18ce292fb1cdfd0 100644 (file)
@@ -101,6 +101,14 @@ struct test6_D : test6_B2, virtual test6_B1 {
 // 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 @@ struct test5_D  : virtual test5_B1, virtual test5_B21, virtual test5_B31 {
 // CHECK-LP64: .quad __ZN2D14bar5Ev
 
 
-test6_D d6;
 test5_D d5;
 test4_D d4;
 test3_D d3;
+
+test6_D d6;
+test7_D d7;