summaryrefslogtreecommitdiffstats
path: root/tests/run-make/mixing-deps/dylib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/mixing-deps/dylib.rs')
-rw-r--r--tests/run-make/mixing-deps/dylib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run-make/mixing-deps/dylib.rs b/tests/run-make/mixing-deps/dylib.rs
new file mode 100644
index 000000000..88976d5b6
--- /dev/null
+++ b/tests/run-make/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) } }