From 0697884ea970ebca67b2de41dc1d380e66fd9c2b Mon Sep 17 00:00:00 2001 From: Oneirical Date: Tue, 28 May 2024 11:17:17 -0400 Subject: convert fpic to ui test --- tests/ui/errors/pic-linker.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/ui/errors/pic-linker.rs (limited to 'tests/ui/errors') diff --git a/tests/ui/errors/pic-linker.rs b/tests/ui/errors/pic-linker.rs new file mode 100644 index 00000000000..9fea42484ed --- /dev/null +++ b/tests/ui/errors/pic-linker.rs @@ -0,0 +1,12 @@ +// `-z text` caused the linker to error if there were any non-position-independent +// code (PIC) sections. This test checks that this no longer happens. +// See https://github.com/rust-lang/rust/pull/39803 + +//@ ignore-windows +//@ ignore-macos +//@ ignore-cross-compile + +//@ compile-flags -Clink-args=-Wl,-z,text +//@ run-pass + +fn main() {} -- cgit 1.4.1-3-g733a5