convert fpic to ui test
This commit is contained in:
parent
22953b3f52
commit
0697884ea9
3 changed files with 12 additions and 12 deletions
12
tests/ui/errors/pic-linker.rs
Normal file
12
tests/ui/errors/pic-linker.rs
Normal file
|
|
@ -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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue