2024-02-16 20:02:50 +00:00
|
|
|
//@ force-host
|
|
|
|
//@ no-prefer-dynamic
|
2023-01-19 15:31:50 +00:00
|
|
|
|
2023-01-03 13:08:20 +00:00
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
#![allow(warnings)]
|
|
|
|
|
|
|
|
extern crate proc_macro;
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
|
|
|
|
#[proc_macro]
|
|
|
|
pub extern "C" fn abi(a: TokenStream) -> TokenStream {
|
2023-03-14 18:43:37 +00:00
|
|
|
//~^ ERROR function-like proc macro has incorrect signature
|
2023-01-03 13:08:20 +00:00
|
|
|
a
|
|
|
|
}
|
|
|
|
|
|
|
|
#[proc_macro]
|
|
|
|
pub extern "system" fn abi2(a: TokenStream) -> TokenStream {
|
2023-03-14 18:43:37 +00:00
|
|
|
//~^ ERROR function-like proc macro has incorrect signature
|
2023-01-03 13:08:20 +00:00
|
|
|
a
|
|
|
|
}
|
|
|
|
|
|
|
|
#[proc_macro]
|
|
|
|
pub extern fn abi3(a: TokenStream) -> TokenStream {
|
2023-03-14 18:43:37 +00:00
|
|
|
//~^ ERROR function-like proc macro has incorrect signature
|
2023-01-03 13:08:20 +00:00
|
|
|
a
|
|
|
|
}
|
|
|
|
|
|
|
|
#[proc_macro]
|
|
|
|
pub extern "Rust" fn abi4(a: TokenStream) -> TokenStream {
|
|
|
|
a
|
|
|
|
}
|