about summary refs log tree commit diff
path: root/tests/ui/errors/pic-linker.rs
blob: 36495ca8fe958efdc093b879f85da6b9345861e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// `-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
//@ ignore-aix

//@ compile-flags: -Clink-args=-Wl,-z,text
//@ run-pass

fn main() {}