summaryrefslogtreecommitdiffstats
path: root/tests/ui/hygiene/auxiliary/codegen-attrs.rs
blob: 74afedbeb77ce53063d6bb4ff9b18f2f14ca07b3 (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(decl_macro)]

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

m!(rust_function_name);