xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/attr-callconv.m (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s
2*0a6a1f1dSLionel Sambuc
3*0a6a1f1dSLionel Sambuc@interface Test
4*0a6a1f1dSLionel Sambuc- (void)test;
5*0a6a1f1dSLionel Sambuc@end
6*0a6a1f1dSLionel Sambuc
7*0a6a1f1dSLionel Sambuc@implementation Test
8*0a6a1f1dSLionel Sambuc- (void)test __attribute__((stdcall)) {}
9*0a6a1f1dSLionel Sambuc    // CHECK: define{{.*}}x86_stdcallcc{{.*}}Test test
10*0a6a1f1dSLionel Sambuc
11*0a6a1f1dSLionel Sambuc- (void)test2 __attribute__((ms_abi)) {}
12*0a6a1f1dSLionel Sambuc    // CHECK: define{{.*}}x86_64_win64cc{{.*}}Test test2
13*0a6a1f1dSLionel Sambuc@end
14