2024-05-28 10:17:17 -05:00
|
|
|
// `-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
|
|
|
|
|
2024-05-28 10:35:33 -05:00
|
|
|
//@ compile-flags: -Clink-args=-Wl,-z,text
|
2024-05-28 10:17:17 -05:00
|
|
|
//@ run-pass
|
|
|
|
|
|
|
|
fn main() {}
|