summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/lto-no-link-whole-rlib
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/run-make-fulldeps/lto-no-link-whole-rlib
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/run-make-fulldeps/lto-no-link-whole-rlib')
-rw-r--r--src/test/run-make-fulldeps/lto-no-link-whole-rlib/Makefile8
-rw-r--r--src/test/run-make-fulldeps/lto-no-link-whole-rlib/bar.c3
-rw-r--r--src/test/run-make-fulldeps/lto-no-link-whole-rlib/foo.c3
-rw-r--r--src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs10
-rw-r--r--src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs12
-rw-r--r--src/test/run-make-fulldeps/lto-no-link-whole-rlib/main.rs7
6 files changed, 0 insertions, 43 deletions
diff --git a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/Makefile b/src/test/run-make-fulldeps/lto-no-link-whole-rlib/Makefile
deleted file mode 100644
index e576ee37c..000000000
--- a/src/test/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/src/test/run-make-fulldeps/lto-no-link-whole-rlib/bar.c b/src/test/run-make-fulldeps/lto-no-link-whole-rlib/bar.c
deleted file mode 100644
index b25011930..000000000
--- a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/bar.c
+++ /dev/null
@@ -1,3 +0,0 @@
-int foo() {
- return 2;
-}
diff --git a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/foo.c b/src/test/run-make-fulldeps/lto-no-link-whole-rlib/foo.c
deleted file mode 100644
index 75010458e..000000000
--- a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/foo.c
+++ /dev/null
@@ -1,3 +0,0 @@
-int foo() {
- return 1;
-}
diff --git a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs b/src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs
deleted file mode 100644
index f70bb3382..000000000
--- a/src/test/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/src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs b/src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs
deleted file mode 100644
index 2dec2a271..000000000
--- a/src/test/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/src/test/run-make-fulldeps/lto-no-link-whole-rlib/main.rs b/src/test/run-make-fulldeps/lto-no-link-whole-rlib/main.rs
deleted file mode 100644
index 0c658808e..000000000
--- a/src/test/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);
-}