rust/tests/ui/hygiene/auxiliary/codegen-attrs.rs

11 lines
157 B
Rust

#![feature(decl_macro)]
macro m($f:ident) {
#[export_name = "export_function_name"]
pub fn $f() -> i32 {
2
}
}
m!(rust_function_name);