this started failing because a GEP was constant folded,

improve the robustness of the test.

llvm-svn: 49618
This commit is contained in:
Chris Lattner 2008-04-13 19:54:28 +00:00
parent cc9709cff4
commit d71f83a8cb
1 changed files with 3 additions and 1 deletions

View 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)));