2019-08-11 11:48:22 +01:00
|
|
|
// 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.
|
|
|
|
|
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
|
|
|
|
//@ aux-build:codegen-attrs.rs
|
2019-08-11 11:48:22 +01:00
|
|
|
|
|
|
|
|
extern crate codegen_attrs;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
assert_eq!(codegen_attrs::rust_function_name(), 2);
|
|
|
|
|
}
|