Skip to content

Commit 5d9d76d

Browse files
committed
rewrite prune-link-args as a ui test
1 parent e2c4662 commit 5d9d76d

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ run-make/pretty-print-with-dep-file/Makefile
182182
run-make/print-calling-conventions/Makefile
183183
run-make/print-target-list/Makefile
184184
run-make/profile/Makefile
185-
run-make/prune-link-args/Makefile
186185
run-make/raw-dylib-alt-calling-convention/Makefile
187186
run-make/raw-dylib-c/Makefile
188187
run-make/raw-dylib-cross-compilation/Makefile

tests/run-make/prune-link-args/Makefile

-10
This file was deleted.

tests/run-make/prune-link-args/empty.rs

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Passing link-args with an unexpected space
2+
// could result in the flag being parsed and receiving
3+
// an unexpected, empty linker argument. This test
4+
// ensures successful compilation even when a space is
5+
// present.
6+
// See https://github.com/rust-lang/rust/pull/10749
7+
8+
//@ check-pass
9+
10+
//@ compile-flags: -C link-args="lc "
11+
// Notice the space at the end, which emulates the output of pkg-config
12+
13+
fn main() {}

0 commit comments

Comments
 (0)