1 #![allow(clashing_extern_declarations)]
4 // In this test we check that the parser accepts an ABI string when it
5 // comes from a macro `literal` or `expr` fragment as opposed to a hardcoded string.
9 macro_rules! abi_from_lit_frag {
15 extern $abi fn _export() {}
17 type _PTR = extern $abi fn();
21 macro_rules! abi_from_expr_frag {
27 extern $abi fn _export() {}
29 type _PTR = extern $abi fn();
34 abi_from_lit_frag!("Rust");
38 abi_from_lit_frag!("C");
42 abi_from_expr_frag!("Rust");
46 abi_from_expr_frag!("C");