summaryrefslogtreecommitdiffstats
path: root/tests/run-make/mixing-libs/dylib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/mixing-libs/dylib.rs')
-rw-r--r--tests/run-make/mixing-libs/dylib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run-make/mixing-libs/dylib.rs b/tests/run-make/mixing-libs/dylib.rs
new file mode 100644
index 000000000..685688750
--- /dev/null
+++ b/tests/run-make/mixing-libs/dylib.rs
@@ -0,0 +1,4 @@
+#![crate_type = "dylib"]
+extern crate rlib;
+
+pub fn dylib() { rlib::rlib() }