Add some UI tests for -l modifier parsing

This commit is contained in:
Zalathar 2024-11-18 15:42:05 +11:00
parent 9d6b2283d6
commit 2902bca654
5 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,2 @@
error: invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed

View File

@ -0,0 +1,2 @@
error: invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed

View File

@ -0,0 +1,2 @@
error: unknown linking modifier ``, expected one of: bundle, verbatim, whole-archive, as-needed

View 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() {}

View File

@ -0,0 +1,2 @@
error: unknown linking modifier `ferris`, expected one of: bundle, verbatim, whole-archive, as-needed