summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/lto-no-link-whole-rlib
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/lto-no-link-whole-rlib
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/lto-no-link-whole-rlib')
-rw-r--r--tests/run-make-fulldeps/lto-no-link-whole-rlib/Makefile8
-rw-r--r--tests/run-make-fulldeps/lto-no-link-whole-rlib/bar.c3
-rw-r--r--tests/run-make-fulldeps/lto-no-link-whole-rlib/foo.c3
-rw-r--r--tests/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs10
-rw-r--r--tests/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs12
-rw-r--r--tests/run-make-fulldeps/lto-no-link-whole-rlib/main.rs7
6 files changed, 0 insertions, 43 deletions
diff --git a/tests/run-make-fulldeps/lto-no-link-whole-rlib/Makefile b/tests/run-make-fulldeps/lto-no-link-whole-rlib/Makefile
deleted file mode 100644
index e576ee37c..000000000
--- a/tests/run-make-fulldeps/lto-no-link-whole-rlib/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-include ../tools.mk
-
-all: $(call NATIVE_STATICLIB,foo) $(call NATIVE_STATICLIB,bar)
- $(RUSTC) lib1.rs
- $(RUSTC) lib2.rs
- $(RUSTC) main.rs -Clto
- $(call RUN,main)
-
diff --git a/tests/run-make-fulldeps/lto-no-link-whole-rlib/bar.c b/tests/run-make-fulldeps/lto-no-link-whole-rlib/bar.c
deleted file mode 100644
index b25011930..000000000
--- a/tests/run-make-fulldeps/lto-no-link-whole-rlib/bar.c
+++ /dev/null
@@ -1,3 +0,0 @@
-int foo() {
- return 2;
-}
diff --git a/tests/run-make-fulldeps/lto-no-link-whole-rlib/foo.c b/tests/run-make-fulldeps/lto-no-link-whole-rlib/foo.c
deleted file mode 100644
index 75010458e..000000000
--- a/tests/run-make-fulldeps/lto-no-link-whole-rlib/foo.c
+++ /dev/null
@@ -1,3 +0,0 @@
-int foo() {
- return 1;
-}
diff --git a/tests/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs b/tests/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs
deleted file mode 100644
index f70bb3382..000000000
--- a/tests/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-#![crate_type = "rlib"]
-
-#[link(name = "foo", kind = "static")]
-extern "C" {
- fn foo() -> i32;
-}
-
-pub fn foo1() -> i32 {
- unsafe { foo() }
-}
diff --git a/tests/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs b/tests/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs
deleted file mode 100644
index 2dec2a271..000000000
--- a/tests/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-#![crate_type = "rlib"]
-
-extern crate lib1;
-
-#[link(name = "bar", kind = "static")]
-extern "C" {
- fn foo() -> i32;
-}
-
-pub fn foo2() -> i32 {
- unsafe { foo() }
-}
diff --git a/tests/run-make-fulldeps/lto-no-link-whole-rlib/main.rs b/tests/run-make-fulldeps/lto-no-link-whole-rlib/main.rs
deleted file mode 100644
index 0c658808e..000000000
--- a/tests/run-make-fulldeps/lto-no-link-whole-rlib/main.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-extern crate lib1;
-extern crate lib2;
-
-fn main() {
- assert_eq!(lib1::foo1(), 2);
- assert_eq!(lib2::foo2(), 2);
-}