blob: 9bd7ecf6849e3bd5626cf6d0945d9329fcd72fb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Make sure that macro expanded codegen attributes work across crates.
// We used to gensym the identifiers in attributes, which stopped dependent
// crates from seeing them, resulting in linker errors in cases like this one.
//@ run-pass
//@ aux-build:codegen-attrs.rs
extern crate codegen_attrs;
fn main() {
assert_eq!(codegen_attrs::rust_function_name(), 2);
}
|