Skip to content

Commit

Permalink
rewrite prune-link-args as a ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed Jun 9, 2024
1 parent e2c4662 commit 5d9d76d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ run-make/pretty-print-with-dep-file/Makefile
run-make/print-calling-conventions/Makefile
run-make/print-target-list/Makefile
run-make/profile/Makefile
run-make/prune-link-args/Makefile
run-make/raw-dylib-alt-calling-convention/Makefile
run-make/raw-dylib-c/Makefile
run-make/raw-dylib-cross-compilation/Makefile
Expand Down
10 changes: 0 additions & 10 deletions tests/run-make/prune-link-args/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion tests/run-make/prune-link-args/empty.rs

This file was deleted.

13 changes: 13 additions & 0 deletions tests/ui/invalid-compile-flags/prune-link-args.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Passing link-args with an unexpected space
// could result in the flag being parsed and receiving
// an unexpected, empty linker argument. This test
// ensures successful compilation even when a space is
// present.
// See https://github.com/rust-lang/rust/pull/10749

//@ check-pass

//@ compile-flags: -C link-args="lc "
// Notice the space at the end, which emulates the output of pkg-config

fn main() {}

0 comments on commit 5d9d76d

Please sign in to comment.