summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/metadata-flag-frobs-symbols
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:20:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:20:39 +0000
commit1376c5a617be5c25655d0d7cb63e3beaa5a6e026 (patch)
tree3bb8d61aee02bc7a15eab3f36e3b921afc2075d0 /tests/run-make-fulldeps/metadata-flag-frobs-symbols
parentReleasing progress-linux version 1.69.0+dfsg1-1~progress7.99u1. (diff)
downloadrustc-1376c5a617be5c25655d0d7cb63e3beaa5a6e026.tar.xz
rustc-1376c5a617be5c25655d0d7cb63e3beaa5a6e026.zip
Merging upstream version 1.70.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/run-make-fulldeps/metadata-flag-frobs-symbols')
-rw-r--r--tests/run-make-fulldeps/metadata-flag-frobs-symbols/Makefile10
-rw-r--r--tests/run-make-fulldeps/metadata-flag-frobs-symbols/bar.rs8
-rw-r--r--tests/run-make-fulldeps/metadata-flag-frobs-symbols/foo.rs6
3 files changed, 0 insertions, 24 deletions
diff --git a/tests/run-make-fulldeps/metadata-flag-frobs-symbols/Makefile b/tests/run-make-fulldeps/metadata-flag-frobs-symbols/Makefile
deleted file mode 100644
index dc6b10f4e..000000000
--- a/tests/run-make-fulldeps/metadata-flag-frobs-symbols/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-include ../tools.mk
-
-all:
- $(RUSTC) foo.rs -C metadata=a -C extra-filename=-a
- $(RUSTC) foo.rs -C metadata=b -C extra-filename=-b
- $(RUSTC) bar.rs \
- --extern foo1=$(TMPDIR)/libfoo-a.rlib \
- --extern foo2=$(TMPDIR)/libfoo-b.rlib \
- --print link-args
- $(call RUN,bar)
diff --git a/tests/run-make-fulldeps/metadata-flag-frobs-symbols/bar.rs b/tests/run-make-fulldeps/metadata-flag-frobs-symbols/bar.rs
deleted file mode 100644
index 1e6957a36..000000000
--- a/tests/run-make-fulldeps/metadata-flag-frobs-symbols/bar.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-extern crate foo1;
-extern crate foo2;
-
-fn main() {
- let a = foo1::foo();
- let b = foo2::foo();
- assert!(a as *const _ != b as *const _);
-}
diff --git a/tests/run-make-fulldeps/metadata-flag-frobs-symbols/foo.rs b/tests/run-make-fulldeps/metadata-flag-frobs-symbols/foo.rs
deleted file mode 100644
index 696aed2fa..000000000
--- a/tests/run-make-fulldeps/metadata-flag-frobs-symbols/foo.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-#![crate_name = "foo"]
-#![crate_type = "rlib"]
-
-static FOO: usize = 3;
-
-pub fn foo() -> &'static usize { &FOO }