rust/tests/run-make/extern-flag-disambiguates/d.rs
2023-03-30 07:34:55 -05:00

12 lines
264 B
Rust

#[cfg(before)] extern crate a;
extern crate b;
extern crate c;
#[cfg(after)] extern crate a;
fn t(a: &'static usize) -> usize { a as *const _ as usize }
fn main() {
assert_eq!(t(a::token()), t(b::a_token()));
assert!(t(a::token()) != t(c::a_token()));
}