Skip to content

Commit 0697884

Browse files
committed
convert fpic to ui test
1 parent 22953b3 commit 0697884

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

tests/run-make/fpic/Makefile

-11
This file was deleted.

tests/run-make/fpic/hello.rs

-1
This file was deleted.

tests/ui/errors/pic-linker.rs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// `-z text` caused the linker to error if there were any non-position-independent
2+
// code (PIC) sections. This test checks that this no longer happens.
3+
// See https://github.com/rust-lang/rust/pull/39803
4+
5+
//@ ignore-windows
6+
//@ ignore-macos
7+
//@ ignore-cross-compile
8+
9+
//@ compile-flags -Clink-args=-Wl,-z,text
10+
//@ run-pass
11+
12+
fn main() {}

0 commit comments

Comments
 (0)