]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/cross-crate-codegen-attrs.rs
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[rust.git] / src / test / ui / hygiene / cross-crate-codegen-attrs.rs
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.
4
5 // run-pass
6 // aux-build:codegen-attrs.rs
7
8 extern crate codegen_attrs;
9
10 fn main() {
11     assert_eq!(codegen_attrs::rust_function_name(), 2);
12 }