summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/c-dynamic-rlib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make-fulldeps/c-dynamic-rlib')
-rw-r--r--tests/run-make-fulldeps/c-dynamic-rlib/Makefile15
-rw-r--r--tests/run-make-fulldeps/c-dynamic-rlib/bar.rs5
-rw-r--r--tests/run-make-fulldeps/c-dynamic-rlib/cfoo.c4
-rw-r--r--tests/run-make-fulldeps/c-dynamic-rlib/foo.rs10
4 files changed, 0 insertions, 34 deletions
diff --git a/tests/run-make-fulldeps/c-dynamic-rlib/Makefile b/tests/run-make-fulldeps/c-dynamic-rlib/Makefile
deleted file mode 100644
index c65d648b9..000000000
--- a/tests/run-make-fulldeps/c-dynamic-rlib/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-include ../tools.mk
-
-# ignore-macos
-#
-# This hits an assertion in the linker on older versions of osx apparently
-
-# This overrides the LD_LIBRARY_PATH for RUN
-TARGET_RPATH_DIR:=$(TARGET_RPATH_DIR):$(TMPDIR)
-
-all: $(call DYLIB,cfoo)
- $(RUSTC) foo.rs
- $(RUSTC) bar.rs
- $(call RUN,bar)
- $(call REMOVE_DYLIBS,cfoo)
- $(call FAIL,bar)
diff --git a/tests/run-make-fulldeps/c-dynamic-rlib/bar.rs b/tests/run-make-fulldeps/c-dynamic-rlib/bar.rs
deleted file mode 100644
index b8c798ffd..000000000
--- a/tests/run-make-fulldeps/c-dynamic-rlib/bar.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-extern crate foo;
-
-fn main() {
- foo::rsfoo();
-}
diff --git a/tests/run-make-fulldeps/c-dynamic-rlib/cfoo.c b/tests/run-make-fulldeps/c-dynamic-rlib/cfoo.c
deleted file mode 100644
index fea490cf9..000000000
--- a/tests/run-make-fulldeps/c-dynamic-rlib/cfoo.c
+++ /dev/null
@@ -1,4 +0,0 @@
-#ifdef _WIN32
-__declspec(dllexport)
-#endif
-int foo() { return 0; }
diff --git a/tests/run-make-fulldeps/c-dynamic-rlib/foo.rs b/tests/run-make-fulldeps/c-dynamic-rlib/foo.rs
deleted file mode 100644
index 3dd376f1f..000000000
--- a/tests/run-make-fulldeps/c-dynamic-rlib/foo.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-#![crate_type = "rlib"]
-
-#[link(name = "cfoo")]
-extern "C" {
- fn foo();
-}
-
-pub fn rsfoo() {
- unsafe { foo() }
-}