Skip to content

Commit 0bd62ad

Browse files
committed
FileCheckify a grep test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189042 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent d173d78 commit 0bd62ad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/CodeGenCXX/static-init-1.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %clang_cc1 -triple=x86_64-apple-darwin9 -emit-llvm %s -o %t
2-
// RUN: grep "call i32 @_Z5func1i" %t | count 3
1+
// RUN: %clang_cc1 -triple=x86_64-apple-darwin9 -emit-llvm %s -o - | FileCheck %s
32

43
extern "C" int printf(...);
54

@@ -9,15 +8,18 @@ int func2(int c) { return printf("loading the func2(%d)\n", c); };
98
int func1(int c) { return printf("loading the func1(%d)\n", c); }
109

1110
static int loader_1 = func1(++count);
11+
// CHECK: call i32 @_Z5func1i
1212

1313
int loader_2 = func2(++count);
1414

1515
static int loader_3 = func1(++count);
16-
16+
// CHECK: call i32 @_Z5func1i
1717

1818
int main() {}
1919

2020
int loader_4 = func2(++count);
2121
static int loader_5 = func1(++count);
2222
int loader_6 = func2(++count);
23+
// CHECK: call i32 @_Z5func1i
2324

25+
// CHECK-NOT: call i32 @_Z5func1i

0 commit comments

Comments
 (0)