summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/linkage-attr-on-static
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make-fulldeps/linkage-attr-on-static')
-rw-r--r--tests/run-make-fulldeps/linkage-attr-on-static/Makefile5
-rw-r--r--tests/run-make-fulldeps/linkage-attr-on-static/bar.rs16
-rw-r--r--tests/run-make-fulldeps/linkage-attr-on-static/foo.c7
3 files changed, 0 insertions, 28 deletions
diff --git a/tests/run-make-fulldeps/linkage-attr-on-static/Makefile b/tests/run-make-fulldeps/linkage-attr-on-static/Makefile
deleted file mode 100644
index 7cc54e40a..000000000
--- a/tests/run-make-fulldeps/linkage-attr-on-static/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-include ../tools.mk
-
-all: $(call NATIVE_STATICLIB,foo)
- $(RUSTC) bar.rs
- $(call RUN,bar) || exit 1
diff --git a/tests/run-make-fulldeps/linkage-attr-on-static/bar.rs b/tests/run-make-fulldeps/linkage-attr-on-static/bar.rs
deleted file mode 100644
index 68607cbb6..000000000
--- a/tests/run-make-fulldeps/linkage-attr-on-static/bar.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-#![feature(linkage)]
-
-#[no_mangle]
-#[linkage = "external"]
-static BAZ: i32 = 21;
-
-#[link(name = "foo", kind = "static")]
-extern "C" {
- fn what() -> i32;
-}
-
-fn main() {
- unsafe {
- assert_eq!(what(), BAZ);
- }
-}
diff --git a/tests/run-make-fulldeps/linkage-attr-on-static/foo.c b/tests/run-make-fulldeps/linkage-attr-on-static/foo.c
deleted file mode 100644
index 78a6934f5..000000000
--- a/tests/run-make-fulldeps/linkage-attr-on-static/foo.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <stdint.h>
-
-extern int32_t BAZ;
-
-int32_t what() {
- return BAZ;
-}