xref: /aosp_15_r20/external/clang/test/Sema/callingconv-sysv_abi.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-pc-linux-gnu %s
2*67e74705SXin Li 
3*67e74705SXin Li void __attribute__((ms_abi)) foo(void);
4*67e74705SXin Li void (*pfoo)(void) = foo; // expected-warning{{incompatible pointer types}}
5*67e74705SXin Li 
6*67e74705SXin Li void __attribute__((sysv_abi)) bar(void);
7*67e74705SXin Li void (*pbar)(void) = bar;
8*67e74705SXin Li 
9*67e74705SXin Li void (__attribute__((ms_abi)) *pbar2)(void) = bar; // expected-warning{{incompatible pointer types}}
10