summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-13 19:54:28 +0000
committerChris Lattner <sabre@nondot.org>2008-04-13 19:54:28 +0000
commitd71f83a8cbe674bdfbada8c748b8e57af3d82a9a (patch)
tree801909499c4458a218fbf61cd0e06ce93d4dc0e7
parentcc9709cff40ead95fe2497c8b370f2194eedeaed (diff)
downloadbcm5719-llvm-d71f83a8cbe674bdfbada8c748b8e57af3d82a9a.tar.gz
bcm5719-llvm-d71f83a8cbe674bdfbada8c748b8e57af3d82a9a.zip
this started failing because a GEP was constant folded,
improve the robustness of the test. llvm-svn: 49618
-rw-r--r--clang/test/CodeGen/address-space.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/CodeGen/address-space.c b/clang/test/CodeGen/address-space.c
index a7a08b16368..20f41821a12 100644
--- a/clang/test/CodeGen/address-space.c
+++ b/clang/test/CodeGen/address-space.c
@@ -1,4 +1,6 @@
-// RUN: clang -emit-llvm < %s 2>&1 | grep 'addrspace(1)' | count 6
+// RUN: clang -emit-llvm < %s 2>&1 | grep '@foo.*global.*addrspace(1)'
+// RUN: clang -emit-llvm < %s 2>&1 | grep '@ban.*global.*addrspace(1)'
+// RUN: clang -emit-llvm < %s 2>&1 | grep 'load.*addrspace(1)' | count 2
int foo __attribute__((address_space(1)));
int ban[10] __attribute__((address_space(1)));
OpenPOWER on IntegriCloud