about summary refs log tree commit diff
path: root/tests/run-make/mixing-deps/dylib.rs
blob: f3dd134249db168b59b9eda42f8d5a6413ae6812 (plain)
1
2
3
4
5
6
7
8
#![crate_type = "dylib"]
extern crate both;

use std::mem;

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