improve the robustness of the test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49618
91177308-0d34-0410-b5e6-
96231b3b80d8
-// 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)));