summaryrefslogtreecommitdiffstats
path: root/tests/run-make/mixing-deps/dylib.rs
blob: 88976d5b663f32de3aeed99064cfd1db19efd3e7 (plain)
1
2
3
4
5
6
#![crate_type = "dylib"]
extern crate both;

use std::mem;

pub fn addr() -> usize { unsafe { mem::transmute(&both::foo) } }