]> granicus.if.org Git - clang/commitdiff
Add more testcase for construction vtables and VTTs.
authorMike Stump <mrs@apple.com>
Fri, 13 Nov 2009 21:55:26 +0000 (21:55 +0000)
committerMike Stump <mrs@apple.com>
Fri, 13 Nov 2009 21:55:26 +0000 (21:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88702 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/virt.cpp

index d9021bda7974668575620f80dd48503157b3ec3f..565968ce509ede9be93398b0b0faf8e6e015fd9e 100644 (file)
@@ -919,6 +919,20 @@ class test20_D : public test20_B, public test20_B1 {
 // CHECK-LP64-NEXT: .quad __ZTI8test20_D
 // CHECK-LP64-NEXT: .quad __ZN9test20_V14foo2Ev
 
+// CHECK-LP64:     __ZTC8test20_D0_8test20_B:
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .quad   __ZTI8test20_B
+// CHECK-LP64-NEXT: .quad   __ZN8test20_V4foo1Ev
+
+// CHECK-LP64:     __ZTC8test20_D8_9test20_B1:
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .quad   __ZTI9test20_B1
+// CHECK-LP64-NEXT: .quad   __ZN9test20_V14foo2Ev
+
 // CHECK-LP64:     __ZTT8test20_D:
 // CHECK-LP64-NEXT: .quad   (__ZTV8test20_D) + 40
 // CHECK-LP64-NEXT: .quad   (__ZTC8test20_D0_8test20_B) + 32
@@ -957,6 +971,20 @@ 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:     __ZTC8test21_D0_8test21_B:
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .quad   __ZTI8test21_B
+// CHECK-LP64-NEXT: .quad   __ZN8test21_V3fooEv
+
+// CHECK-LP64:     __ZTC8test21_D8_9test21_B1:
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .space  8
+// CHECK-LP64-NEXT: .quad   __ZTI9test21_B1
+// CHECK-LP64-NEXT: .quad   __ZN9test21_V13fooEv
+
 // CHECK-LP64:     __ZTT8test21_D:
 // CHECK-LP64-NEXT: .quad   (__ZTV8test21_D) + 40
 // CHECK-LP64-NEXT: .quad   (__ZTC8test21_D0_8test21_B) + 32