2013-08-30 12:39:01 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-pc-linux-gnu %s
|
|
|
|
|
|
|
|
void __attribute__((ms_abi)) foo(void);
|
2020-02-25 22:49:59 +08:00
|
|
|
void (*pfoo)(void) = foo; // expected-warning{{incompatible function pointer types}}
|
2013-08-30 12:39:01 +08:00
|
|
|
|
|
|
|
void __attribute__((sysv_abi)) bar(void);
|
|
|
|
void (*pbar)(void) = bar;
|
|
|
|
|
2020-02-25 22:49:59 +08:00
|
|
|
void (__attribute__((ms_abi)) *pbar2)(void) = bar; // expected-warning{{incompatible function pointer types}}
|