diff options
-rw-r--r-- | test/CodeGen/address-space.c | 4 |
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))); |