Aaron Ballman | b8f67f2 | 2013-11-19 04:08:34 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s |
| 2 | |
| 3 | @interface Test |
| 4 | - (void)test; |
| 5 | @end |
| 6 | |
| 7 | @implementation Test |
Aaron Ballman | 0362a6d | 2013-12-18 16:23:37 +0000 | [diff] [blame] | 8 | - (void)test __attribute__((stdcall)) {} |
Aaron Ballman | b8f67f2 | 2013-11-19 04:08:34 +0000 | [diff] [blame] | 9 | // CHECK: define{{.*}}x86_stdcallcc{{.*}}Test test |
Aaron Ballman | 0362a6d | 2013-12-18 16:23:37 +0000 | [diff] [blame] | 10 | |
| 11 | - (void)test2 __attribute__((ms_abi)) {} |
| 12 | // CHECK: define{{.*}}x86_64_win64cc{{.*}}Test test2 |
Aaron Ballman | b8f67f2 | 2013-11-19 04:08:34 +0000 | [diff] [blame] | 13 | @end |