diff options
-rw-r--r-- | test/CodeGen/stdcall-fastcall.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/CodeGen/stdcall-fastcall.c b/test/CodeGen/stdcall-fastcall.c index 1fbed300d8..24f90e0d00 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 @@ void (__attribute__((stdcall)) *pf4)(void) = f4; 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; } |