]> granicus.if.org Git - clang/commitdiff
this started failing because a GEP was constant folded,
authorChris Lattner <sabre@nondot.org>
Sun, 13 Apr 2008 19:54:28 +0000 (19:54 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 13 Apr 2008 19:54:28 +0000 (19:54 +0000)
improve the robustness of the test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49618 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/address-space.c

index a7a08b163684196869ff0648a389460888a38004..20f41821a12f3a1c958a11ff0c7d02b038d84e03 100644 (file)
@@ -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)));