diff options
author | Mike Stump <mrs@apple.com> | 2009-08-13 23:33:29 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-08-13 23:33:29 +0000 |
commit | 9a1090a3995b8684445b76a368d2d41b92b5398e (patch) | |
tree | bed860a4ac02e4d2da060f14c6b3c07610b07d4c /clang | |
parent | 62e6a8bbe68e4ca4c8284353909af008929c6192 (diff) | |
download | bcm5719-llvm-9a1090a3995b8684445b76a368d2d41b92b5398e.tar.gz bcm5719-llvm-9a1090a3995b8684445b76a368d2d41b92b5398e.zip |
Add testcase for recent work.
llvm-svn: 78959
Diffstat (limited to 'clang')
-rw-r--r-- | clang/test/CodeGenCXX/virt.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/virt.cpp b/clang/test/CodeGenCXX/virt.cpp index eb1c83940ac..e2fded291a4 100644 --- a/clang/test/CodeGenCXX/virt.cpp +++ b/clang/test/CodeGenCXX/virt.cpp @@ -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; |