summaryrefslogtreecommitdiff
path: root/test/CodeGen/address-space.c
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
commit72e1c6cee10c0325a0398b6d8a065862665e4b13 (patch)
tree324705ddacbb27a24c1a734b9bf7c97c14a00194 /test/CodeGen/address-space.c
parentbe432b3583bdf0fdc9c34be4bc0e6899f3aa9aa7 (diff)
downloadclang-72e1c6cee10c0325a0398b6d8a065862665e4b13.tar.gz
this started failing because a GEP was constant folded,
improve the robustness of the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/address-space.c')
-rw-r--r--test/CodeGen/address-space.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/address-space.c b/test/CodeGen/address-space.c
index a7a08b1636..20f41821a1 100644
--- a/test/CodeGen/address-space.c
+++ b/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)));