diff options
Diffstat (limited to 'tests/ui/errors')
| -rw-r--r-- | tests/ui/errors/pic-linker.rs | 12 |
1 files changed, 12 insertions, 0 deletions
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() {} |
