diff options
Diffstat (limited to 'tests/run-make-fulldeps/mixing-deps/dylib.rs')
-rw-r--r-- | tests/run-make-fulldeps/mixing-deps/dylib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run-make-fulldeps/mixing-deps/dylib.rs b/tests/run-make-fulldeps/mixing-deps/dylib.rs new file mode 100644 index 000000000..88976d5b6 --- /dev/null +++ b/tests/run-make-fulldeps/mixing-deps/dylib.rs @@ -0,0 +1,6 @@ +#![crate_type = "dylib"] +extern crate both; + +use std::mem; + +pub fn addr() -> usize { unsafe { mem::transmute(&both::foo) } } |