aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/attr-callconv.m
blob: 8cf8d2bd71f764c14040c7c0fa7e0ac68be155e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s

@interface Test
- (void)test;
@end

@implementation Test
- (void)test __attribute__((stdcall)) {}
    // CHECK: define{{.*}}x86_stdcallcc{{.*}}Test test
    
- (void)test2 __attribute__((ms_abi)) {}
    // CHECK: define{{.*}}win64cc{{.*}}Test test2
@end