mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00
13 lines
337 B
Rust
13 lines
337 B
Rust
![]() |
// `-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() {}
|