summaryrefslogtreecommitdiffstats
path: root/tests/run-make/extern-flag-disambiguates/d.rs
blob: 249c6a107ff39a193429f74152a85888eb57eeb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
#[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()));
}