forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some UI tests for
-l
modifier parsing
- Loading branch information
Showing
5 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
tests/ui/native-library-link-flags/modifiers-bad.blank.stderr
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,2 @@ | ||
error: invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed | ||
|
2 changes: 2 additions & 0 deletions
2
tests/ui/native-library-link-flags/modifiers-bad.no-prefix.stderr
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,2 @@ | ||
error: invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed | ||
|
2 changes: 2 additions & 0 deletions
2
tests/ui/native-library-link-flags/modifiers-bad.prefix-only.stderr
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,2 @@ | ||
error: unknown linking modifier ``, expected one of: bundle, verbatim, whole-archive, as-needed | ||
|
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,11 @@ | ||
//@ edition: 2021 | ||
//@ revisions: blank no-prefix prefix-only unknown | ||
|
||
//@[blank] compile-flags: -l static:=foo | ||
//@[no-prefix] compile-flags: -l static:bundle=foo | ||
//@[prefix-only] compile-flags: -l static:+=foo | ||
//@[unknown] compile-flags: -l static:+ferris=foo | ||
|
||
// Tests various illegal values for the "modifier" part of an `-l` flag. | ||
|
||
fn main() {} |
2 changes: 2 additions & 0 deletions
2
tests/ui/native-library-link-flags/modifiers-bad.unknown.stderr
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,2 @@ | ||
error: unknown linking modifier `ferris`, expected one of: bundle, verbatim, whole-archive, as-needed | ||
|