[cfe-commits] r65852 - /cfe/trunk/test/CodeGen/string-init.c

Daniel Dunbar daniel at zuster.org
Mon Mar 2 10:50:37 PST 2009


Author: ddunbar
Date: Mon Mar  2 12:50:36 2009
New Revision: 65852

URL: http://llvm.org/viewvc/llvm-project?rev=65852&view=rev
Log:
Attempt to make test more robust (fails for users who put LLVM in
/path/with/store/in/it").

Modified:
    cfe/trunk/test/CodeGen/string-init.c

Modified: cfe/trunk/test/CodeGen/string-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/string-init.c?rev=65852&r1=65851&r2=65852&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/string-init.c (original)
+++ cfe/trunk/test/CodeGen/string-init.c Mon Mar  2 12:50:36 2009
@@ -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";





More information about the cfe-commits mailing list