[cfe-commits] r49618 - /cfe/trunk/test/CodeGen/address-space.c

Chris Lattner sabre at nondot.org
Sun Apr 13 12:54:28 PDT 2008


Author: lattner
Date: Sun Apr 13 14:54:28 2008
New Revision: 49618

URL: http://llvm.org/viewvc/llvm-project?rev=49618&view=rev
Log:
this started failing because a GEP was constant folded, 
improve the robustness of the test.

Modified:
    cfe/trunk/test/CodeGen/address-space.c

Modified: cfe/trunk/test/CodeGen/address-space.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/address-space.c?rev=49618&r1=49617&r2=49618&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/address-space.c (original)
+++ cfe/trunk/test/CodeGen/address-space.c Sun Apr 13 14:54:28 2008
@@ -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)));
 





More information about the cfe-commits mailing list