From 72e1c6cee10c0325a0398b6d8a065862665e4b13 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 13 Apr 2008 19:54:28 +0000 Subject: [PATCH] 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 --- test/CodeGen/address-space.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))); -- 2.40.0