rust/tests/run-make/extern-flag-disambiguates/d.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
268 B
Rust
Raw Normal View History

#[cfg(before)]
extern crate a;
#[cfg(after)]
extern crate a;
extern crate b;
extern crate c;
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()));
}