diff options
Diffstat (limited to 'clang/test/CodeGen/coldcc.c')
| -rw-r--r-- | clang/test/CodeGen/coldcc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/coldcc.c b/clang/test/CodeGen/coldcc.c new file mode 100644 index 00000000000..8965cadfe40 --- /dev/null +++ b/clang/test/CodeGen/coldcc.c @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -triple i386-unknown-unknown -Werror -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Werror -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple armv7-unknown-unknown -Werror -emit-llvm -o - %s | FileCheck %s + +void __attribute__((coldcc)) f1(void); + +void f2(void) { + f1(); +// CHECK: call coldcc void @f1() +} + +// CHECK: declare coldcc void @f1() |

