diff options
Diffstat (limited to 'test/Sema/callingconv-ms_abi.c')
-rw-r--r-- | test/Sema/callingconv-ms_abi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Sema/callingconv-ms_abi.c b/test/Sema/callingconv-ms_abi.c new file mode 100644 index 000000000000..64c5970adf1d --- /dev/null +++ b/test/Sema/callingconv-ms_abi.c @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-pc-win32 %s + +void __attribute__((ms_abi)) foo(void); +void (*pfoo)(void) = foo; + +void __attribute__((sysv_abi)) bar(void); +void (*pbar)(void) = bar; // expected-warning{{incompatible pointer types}} + +void (__attribute__((sysv_abi)) *pfoo2)(void) = foo; // expected-warning{{incompatible pointer types}} |