r189042 - FileCheckify a grep test.

Reid Kleckner reid at kleckner.net
Thu Aug 22 11:45:40 PDT 2013


Author: rnk
Date: Thu Aug 22 13:45:40 2013
New Revision: 189042

URL: http://llvm.org/viewvc/llvm-project?rev=189042&view=rev
Log:
FileCheckify a grep test.

Modified:
    cfe/trunk/test/CodeGenCXX/static-init-1.cpp

Modified: cfe/trunk/test/CodeGenCXX/static-init-1.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/static-init-1.cpp?rev=189042&r1=189041&r2=189042&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/static-init-1.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/static-init-1.cpp Thu Aug 22 13:45:40 2013
@@ -1,5 +1,4 @@
-// RUN: %clang_cc1 -triple=x86_64-apple-darwin9 -emit-llvm %s -o %t
-// RUN: grep "call i32 @_Z5func1i" %t | count 3
+// RUN: %clang_cc1 -triple=x86_64-apple-darwin9 -emit-llvm %s -o - | FileCheck %s
 
 extern "C" int printf(...);
 
@@ -9,15 +8,18 @@ int func2(int c) { return printf("loadin
 int func1(int c) { return printf("loading the func1(%d)\n", c); }
 
 static int loader_1 = func1(++count);
+// CHECK: call i32 @_Z5func1i
 
 int loader_2 = func2(++count);
 
 static int loader_3 = func1(++count);
-
+// CHECK: call i32 @_Z5func1i
 
 int main() {}
 
 int loader_4 = func2(++count);
 static int loader_5 = func1(++count);
 int loader_6 = func2(++count);
+// CHECK: call i32 @_Z5func1i
 
+// CHECK-NOT: call i32 @_Z5func1i





More information about the cfe-commits mailing list