1 // Make sure that macro expanded codegen attributes work across crates.
2 // We used to gensym the identifiers in attributes, which stopped dependent
3 // crates from seeing them, resulting in linker errors in cases like this one.
6 // aux-build:codegen-attrs.rs
8 extern crate codegen_attrs;
11 assert_eq!(codegen_attrs::rust_function_name(), 2);