summaryrefslogtreecommitdiff
path: root/external/bsd/llvm/dist/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2016-02-27 21:58:20 +0000
committerjoerg <joerg@NetBSD.org>2016-02-27 21:58:20 +0000
commit0ec52ee204066150c8321ad142e36072f1145f35 (patch)
tree01a8b6d950a641a8968ab040bd3a0715196fe271 /external/bsd/llvm/dist/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp
parentc7e14c6e633aa49297aa0f519170acb276523e39 (diff)
Import Clang 3.8.0rc3 r261930.
Diffstat (limited to 'external/bsd/llvm/dist/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp')
-rw-r--r--external/bsd/llvm/dist/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/external/bsd/llvm/dist/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp b/external/bsd/llvm/dist/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp
index 835760d165c..2854291e296 100644
--- a/external/bsd/llvm/dist/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp
+++ b/external/bsd/llvm/dist/clang/test/CodeGenCXX/vtable-pointer-initialization.cpp
@@ -21,13 +21,13 @@ struct A : Base {
// CHECK-LABEL: define void @_ZN1AC2Ev(%struct.A* %this) unnamed_addr
// CHECK: call void @_ZN4BaseC2Ev(
-// CHECK: store i32 (...)** bitcast (i8** getelementptr inbounds ([3 x i8*]* @_ZTV1A, i64 0, i64 2) to i32 (...)**)
+// CHECK: store i32 (...)** bitcast (i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @_ZTV1A, i64 0, i64 2) to i32 (...)**)
// CHECK: call void @_ZN5FieldC1Ev(
// CHECK: ret void
A::A() { }
// CHECK-LABEL: define void @_ZN1AD2Ev(%struct.A* %this) unnamed_addr
-// CHECK: store i32 (...)** bitcast (i8** getelementptr inbounds ([3 x i8*]* @_ZTV1A, i64 0, i64 2) to i32 (...)**)
+// CHECK: store i32 (...)** bitcast (i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @_ZTV1A, i64 0, i64 2) to i32 (...)**)
// CHECK: call void @_ZN5FieldD1Ev(
// CHECK: call void @_ZN4BaseD2Ev(
// CHECK: ret void
@@ -45,13 +45,16 @@ void f() { B b; }
// CHECK: call void @_ZN1BC2Ev(
// CHECK-LABEL: define linkonce_odr void @_ZN1BD1Ev(%struct.B* %this) unnamed_addr
-// CHECK: store i32 (...)** bitcast (i8** getelementptr inbounds ([3 x i8*]* @_ZTV1B, i64 0, i64 2) to i32 (...)**)
-// CHECK: call void @_ZN5FieldD1Ev(
-// CHECK: call void @_ZN4BaseD2Ev(
-// CHECK: ret void
+// CHECK: call void @_ZN1BD2Ev(
// CHECK-LABEL: define linkonce_odr void @_ZN1BC2Ev(%struct.B* %this) unnamed_addr
// CHECK: call void @_ZN4BaseC2Ev(
-// CHECK: store i32 (...)** bitcast (i8** getelementptr inbounds ([3 x i8*]* @_ZTV1B, i64 0, i64 2) to i32 (...)**)
+// CHECK: store i32 (...)** bitcast (i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @_ZTV1B, i64 0, i64 2) to i32 (...)**)
// CHECK: call void @_ZN5FieldC1Ev
// CHECK: ret void
+
+// CHECK-LABEL: define linkonce_odr void @_ZN1BD2Ev(%struct.B* %this) unnamed_addr
+// CHECK: store i32 (...)** bitcast (i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @_ZTV1B, i64 0, i64 2) to i32 (...)**)
+// CHECK: call void @_ZN5FieldD1Ev(
+// CHECK: call void @_ZN4BaseD2Ev(
+// CHECK: ret void