aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/reference-field.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/reference-field.cpp')
-rw-r--r--test/CodeGenCXX/reference-field.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGenCXX/reference-field.cpp b/test/CodeGenCXX/reference-field.cpp
index 031202925952..54e914d0f3fc 100644
--- a/test/CodeGenCXX/reference-field.cpp
+++ b/test/CodeGenCXX/reference-field.cpp
@@ -1,6 +1,8 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s -O2 | grep "@_Z1bv"
+// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s -O2 | FileCheck %s
// Make sure the call to b() doesn't get optimized out.
extern struct x {char& x,y;}y;
int b();
int a() { if (!&y.x) b(); }
+
+// CHECK: @_Z1bv