summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/interdependent-c-libraries
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make-fulldeps/interdependent-c-libraries')
-rw-r--r--tests/run-make-fulldeps/interdependent-c-libraries/Makefile14
-rw-r--r--tests/run-make-fulldeps/interdependent-c-libraries/bar.c3
-rw-r--r--tests/run-make-fulldeps/interdependent-c-libraries/bar.rs14
-rw-r--r--tests/run-make-fulldeps/interdependent-c-libraries/foo.c1
-rw-r--r--tests/run-make-fulldeps/interdependent-c-libraries/foo.rs12
-rw-r--r--tests/run-make-fulldeps/interdependent-c-libraries/main.rs6
6 files changed, 0 insertions, 50 deletions
diff --git a/tests/run-make-fulldeps/interdependent-c-libraries/Makefile b/tests/run-make-fulldeps/interdependent-c-libraries/Makefile
deleted file mode 100644
index dc5b55a99..000000000
--- a/tests/run-make-fulldeps/interdependent-c-libraries/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-include ../tools.mk
-
-# The rust crate foo will link to the native library foo, while the rust crate
-# bar will link to the native library bar. There is also a dependency between
-# the native library bar to the natibe library foo.
-#
-# This test ensures that the ordering of -lfoo and -lbar on the command line is
-# correct to complete the linkage. If passed as "-lfoo -lbar", then the 'foo'
-# library will be stripped out, and the linkage will fail.
-
-all: $(call NATIVE_STATICLIB,foo) $(call NATIVE_STATICLIB,bar)
- $(RUSTC) foo.rs
- $(RUSTC) bar.rs
- $(RUSTC) main.rs --print link-args
diff --git a/tests/run-make-fulldeps/interdependent-c-libraries/bar.c b/tests/run-make-fulldeps/interdependent-c-libraries/bar.c
deleted file mode 100644
index 812c97535..000000000
--- a/tests/run-make-fulldeps/interdependent-c-libraries/bar.c
+++ /dev/null
@@ -1,3 +0,0 @@
-void foo();
-
-void bar() { foo(); }
diff --git a/tests/run-make-fulldeps/interdependent-c-libraries/bar.rs b/tests/run-make-fulldeps/interdependent-c-libraries/bar.rs
deleted file mode 100644
index 3c2c3f218..000000000
--- a/tests/run-make-fulldeps/interdependent-c-libraries/bar.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-#![crate_type = "rlib"]
-
-extern crate foo;
-
-#[link(name = "bar", kind = "static")]
-extern "C" {
- fn bar();
-}
-
-pub fn doit() {
- unsafe {
- bar();
- }
-}
diff --git a/tests/run-make-fulldeps/interdependent-c-libraries/foo.c b/tests/run-make-fulldeps/interdependent-c-libraries/foo.c
deleted file mode 100644
index 85e6cd8c3..000000000
--- a/tests/run-make-fulldeps/interdependent-c-libraries/foo.c
+++ /dev/null
@@ -1 +0,0 @@
-void foo() {}
diff --git a/tests/run-make-fulldeps/interdependent-c-libraries/foo.rs b/tests/run-make-fulldeps/interdependent-c-libraries/foo.rs
deleted file mode 100644
index a69809726..000000000
--- a/tests/run-make-fulldeps/interdependent-c-libraries/foo.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-#![crate_type = "rlib"]
-
-#[link(name = "foo", kind = "static")]
-extern "C" {
- fn foo();
-}
-
-pub fn doit() {
- unsafe {
- foo();
- }
-}
diff --git a/tests/run-make-fulldeps/interdependent-c-libraries/main.rs b/tests/run-make-fulldeps/interdependent-c-libraries/main.rs
deleted file mode 100644
index 2aba427df..000000000
--- a/tests/run-make-fulldeps/interdependent-c-libraries/main.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-extern crate foo;
-extern crate bar;
-
-fn main() {
- bar::doit();
-}