mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
convert fpic to ui test
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
# ignore-cross-compile
|
||||
include ../tools.mk
|
||||
|
||||
# ignore-windows
|
||||
# ignore-apple
|
||||
|
||||
# Test for #39529.
|
||||
# `-z text` causes ld to error if there are any non-PIC sections
|
||||
|
||||
all:
|
||||
$(RUSTC) hello.rs -C link-args=-Wl,-z,text
|
||||
@@ -1 +0,0 @@
|
||||
fn main() { }
|
||||
@@ -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() {}
|
||||
Reference in New Issue
Block a user