summaryrefslogtreecommitdiffstats
path: root/tests/run-make/mixing-deps/prog.rs
blob: 188981dc1a31adea0075e610d49b7d810d371e74 (plain)
1
2
3
4
5
6
7
8
9
extern crate dylib;
extern crate both;

use std::mem;

fn main() {
    assert_eq!(unsafe { mem::transmute::<&isize, usize>(&both::foo) },
               dylib::addr());
}