mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Add some UI tests for -l
modifier parsing
This commit is contained in:
parent
9d6b2283d6
commit
2902bca654
@ -0,0 +1,2 @@
|
||||
error: invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed
|
||||
|
@ -0,0 +1,2 @@
|
||||
error: invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed
|
||||
|
@ -0,0 +1,2 @@
|
||||
error: unknown linking modifier ``, expected one of: bundle, verbatim, whole-archive, as-needed
|
||||
|
11
tests/ui/native-library-link-flags/modifiers-bad.rs
Normal file
11
tests/ui/native-library-link-flags/modifiers-bad.rs
Normal file
@ -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() {}
|
@ -0,0 +1,2 @@
|
||||
error: unknown linking modifier `ferris`, expected one of: bundle, verbatim, whole-archive, as-needed
|
||||
|
Loading…
Reference in New Issue
Block a user