-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite prune-link-args as a ui test
- Loading branch information
Showing
4 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() {} |