summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/string-init.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-02 18:50:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-02 18:50:36 +0000
commite2e704752cba58b8e5c61767fa03ac16936d8a4d (patch)
treed692cb2210557d74d1bbc2dec55515762e7a5563 /clang/test/CodeGen/string-init.c
parent13dbe873bd3cb3adef3a74a1929b229ebb999c52 (diff)
downloadbcm5719-llvm-e2e704752cba58b8e5c61767fa03ac16936d8a4d.tar.gz
bcm5719-llvm-e2e704752cba58b8e5c61767fa03ac16936d8a4d.zip
Attempt to make test more robust (fails for users who put LLVM in
/path/with/store/in/it"). llvm-svn: 65852
Diffstat (limited to 'clang/test/CodeGen/string-init.c')
-rw-r--r--clang/test/CodeGen/string-init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/CodeGen/string-init.c b/clang/test/CodeGen/string-init.c
index f3ad4c51ee8..b2b10dcf94d 100644
--- a/clang/test/CodeGen/string-init.c
+++ b/clang/test/CodeGen/string-init.c
@@ -1,5 +1,7 @@
-// RUN: clang -emit-llvm %s -o - | not grep -F "[5 x i8]" &&
-// RUN: clang -emit-llvm %s -o - | not grep "store"
+// RUN: clang -emit-llvm %s -o %t &&
+// RUN: grep 'internal constant \[10 x i8\]' %t &&
+// RUN: not grep -F "[5 x i8]" %t &&
+// RUN: not grep "store " %t
void test(void) {
char a[10] = "asdf";
OpenPOWER on IntegriCloud