Convert this test to FileCheck instead of grepping LLVM IR.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95428 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/stdcall-fastcall.c b/test/CodeGen/stdcall-fastcall.c
index 1fbed30..24f90e0 100644
--- a/test/CodeGen/stdcall-fastcall.c
+++ b/test/CodeGen/stdcall-fastcall.c
@@ -1,13 +1,16 @@
-// RUN: %clang_cc1 -emit-llvm < %s | grep 'fastcallcc' | count 6
-// RUN: %clang_cc1 -emit-llvm < %s | grep 'stdcallcc' | count 6
+// RUN: %clang_cc1 -emit-llvm < %s | FileCheck %s
void __attribute__((fastcall)) f1(void);
void __attribute__((stdcall)) f2(void);
void __attribute__((fastcall)) f3(void) {
+// CHECK: define x86_fastcallcc void @f3()
f1();
+// CHECK: call x86_fastcallcc void @f1()
}
void __attribute__((stdcall)) f4(void) {
+// CHECK: define x86_stdcallcc void @f4()
f2();
+// CHECK: call x86_stdcallcc void @f2()
}
// PR5280
@@ -18,7 +21,13 @@
int main(void) {
f3(); f4();
+ // CHECK: call x86_fastcallcc void @f3()
+ // CHECK: call x86_stdcallcc void @f4()
pf1(); pf2(); pf3(); pf4();
+ // CHECK: call x86_fastcallcc void %tmp()
+ // CHECK: call x86_stdcallcc void %tmp1()
+ // CHECK: call x86_fastcallcc void %tmp2()
+ // CHECK: call x86_stdcallcc void %tmp3()
return 0;
}