summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/references.cpp
diff options
context:
space:
mode:
authorStephen Lin <stephenwlin@gmail.com>2013-08-15 06:47:53 +0000
committerStephen Lin <stephenwlin@gmail.com>2013-08-15 06:47:53 +0000
commit93ab6bf534fb6c26563c00f28a8fc5581bb71dfd (patch)
tree938e985e9673d1b0d289e8ed751943edc097da1d /test/CodeGenCXX/references.cpp
parent233fbe1f56183878167a56be53425a6dd25ba334 (diff)
CHECK-LABEL-ify some code gen tests to improve diagnostic experience when tests fail.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/references.cpp')
-rw-r--r--test/CodeGenCXX/references.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/CodeGenCXX/references.cpp b/test/CodeGenCXX/references.cpp
index 35dd14e5d3..ec7a3d5daa 100644
--- a/test/CodeGenCXX/references.cpp
+++ b/test/CodeGenCXX/references.cpp
@@ -1,6 +1,6 @@
// RUN: not %clang_cc1 -triple x86_64-apple-darwin -verify -emit-llvm -o - %s | FileCheck %s
void t1() {
- // CHECK: define void @_Z2t1v
+ // CHECK-LABEL: define void @_Z2t1v
// CHECK: [[REFLOAD:%.*]] = load i32** @a, align 8
// CHECK: load i32* [[REFLOAD]], align 4
extern int& a;
@@ -8,7 +8,7 @@ void t1() {
}
void t2(int& a) {
- // CHECK: define void @_Z2t2Ri
+ // CHECK-LABEL: define void @_Z2t2Ri
// CHECK: [[REFLOAD2:%.*]] = load i32** {{.*}}, align 8
// CHECK: load i32* [[REFLOAD2]], align 4
int b = a;
@@ -189,7 +189,7 @@ namespace N2 {
P getP();
- // CHECK: define void @_ZN2N21fEi
+ // CHECK-LABEL: define void @_ZN2N21fEi
// CHECK: call void @_ZN2N24getPEv
// CHECK: getelementptr inbounds
// CHECK: store i32 17
@@ -218,7 +218,7 @@ namespace N2 {
Z getZ();
- // CHECK: define void @_ZN2N21gEi
+ // CHECK-LABEL: define void @_ZN2N21gEi
// CHECK: call void @_ZN2N24getZEv
// CHECK: {{getelementptr inbounds.*i32 0, i32 0}}
// CHECK: {{getelementptr inbounds.*i32 0, i32 0}}
@@ -240,7 +240,7 @@ struct A {
~A();
};
-// CHECK: define internal void @__cxx_global_var_init
+// CHECK-LABEL: define internal void @__cxx_global_var_init
// CHECK: call void @_ZN2N31AC1Ei(%"struct.N3::A"* @_ZGRN2N35sA123E, i32 123)
// CHECK: call i32 @__cxa_atexit
// CHECK: ret void
@@ -255,7 +255,7 @@ struct A {
};
void f() {
- // CHECK: define void @_ZN2N41fEv
+ // CHECK-LABEL: define void @_ZN2N41fEv
// CHECK: call void @_ZN2N41AC1Ev(%"struct.N4::A"* @_ZGRZN2N41fEvE2ar)
// CHECK: call i32 @__cxa_atexit
// CHECK: ret void
@@ -279,7 +279,7 @@ void h() {
// PR9565
namespace PR9565 {
struct a { int a : 10, b : 10; };
- // CHECK: define void @_ZN6PR95651fEv()
+ // CHECK-LABEL: define void @_ZN6PR95651fEv()
void f() {
// CHECK: call void @llvm.memcpy
a x = { 0, 0 };
@@ -306,7 +306,7 @@ namespace PR9565 {
namespace N6 {
extern struct x {char& x;}y;
int a() { return y.x; }
- // CHECK: define i32 @_ZN2N61aEv
+ // CHECK-LABEL: define i32 @_ZN2N61aEv
// CHECK: [[REFLOAD3:%.*]] = load i8** getelementptr inbounds (%"struct.N6::x"* @_ZN2N61yE, i32 0, i32 0), align 8
// CHECK: load i8* [[REFLOAD3]], align 1
}