Debian Codegraph @

clang/test/Sema/callingconv-ms_abi.c

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-pc-win32 %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-uefi %s
3
4 void __attribute__((ms_abi)) foo(void);
5 void (*pfoo)(void) = foo;
6
7 void __attribute__((sysv_abi)) bar(void);
8 void (*pbar)(void) = bar; // expected-error{{incompatible function pointer types}}
9
10 void (__attribute__((sysv_abi)) *pfoo2)(void) = foo; // expected-error{{incompatible function pointer types}}