]> granicus.if.org Git - clang/commitdiff
Add a testcase for the recent VTT work.
authorMike Stump <mrs@apple.com>
Fri, 13 Nov 2009 19:36:46 +0000 (19:36 +0000)
committerMike Stump <mrs@apple.com>
Fri, 13 Nov 2009 19:36:46 +0000 (19:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88681 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/virt.cpp

index eaab159204c8994e4f2f1da36cb72922541569c1..1da8a9f5a4e91fafea5d1e02469e8bbf10157e70 100644 (file)
@@ -936,6 +936,16 @@ class test21_D : public test21_B, public test21_B1 {
 // CHECK-LP64-NEXT: .quad __ZTI8test21_D
 // CHECK-LP64-NEXT: .quad __ZTv0_n24_N8test21_D3fooEv
 
+// CHECK-LP64:     __ZTT8test21_D:
+// CHECK-LP64-NEXT: .quad   (__ZTV8test21_D) + 40
+// CHECK-LP64-NEXT: .quad   (__ZTC8test21_D0_8test21_B) + 32
+// CHECK-LP64-NEXT: .quad   (__ZTC8test21_D0_8test21_B) + 32
+// CHECK-LP64-NEXT: .quad   (__ZTC8test21_D8_9test21_B1) + 32
+// CHECK-LP64-NEXT: .quad   (__ZTC8test21_D8_9test21_B1) + 32
+// CHECK-LP64-NEXT .quad   (__ZTV8test21_D) + 40
+// CHECK-LP64-NEXT .quad   (__ZTV8test21_D) + 80
+// CHECK-LP64-NEXT .quad   (__ZTV8test21_D) + 80
+
 
 
 // CHECK-LP64: __ZTV1B: