From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/manual/manual-link-bad-form.rs | 5 +++++ tests/ui/manual/manual-link-bad-form.stderr | 2 ++ tests/ui/manual/manual-link-bad-kind.rs | 5 +++++ tests/ui/manual/manual-link-bad-kind.stderr | 2 ++ tests/ui/manual/manual-link-bad-search-path.rs | 5 +++++ tests/ui/manual/manual-link-bad-search-path.stderr | 2 ++ tests/ui/manual/manual-link-framework.rs | 7 +++++++ tests/ui/manual/manual-link-framework.stderr | 4 ++++ tests/ui/manual/manual-link-unsupported-kind.rs | 5 +++++ tests/ui/manual/manual-link-unsupported-kind.stderr | 2 ++ 10 files changed, 39 insertions(+) create mode 100644 tests/ui/manual/manual-link-bad-form.rs create mode 100644 tests/ui/manual/manual-link-bad-form.stderr create mode 100644 tests/ui/manual/manual-link-bad-kind.rs create mode 100644 tests/ui/manual/manual-link-bad-kind.stderr create mode 100644 tests/ui/manual/manual-link-bad-search-path.rs create mode 100644 tests/ui/manual/manual-link-bad-search-path.stderr create mode 100644 tests/ui/manual/manual-link-framework.rs create mode 100644 tests/ui/manual/manual-link-framework.stderr create mode 100644 tests/ui/manual/manual-link-unsupported-kind.rs create mode 100644 tests/ui/manual/manual-link-unsupported-kind.stderr (limited to 'tests/ui/manual') diff --git a/tests/ui/manual/manual-link-bad-form.rs b/tests/ui/manual/manual-link-bad-form.rs new file mode 100644 index 000000000..bc9b6be02 --- /dev/null +++ b/tests/ui/manual/manual-link-bad-form.rs @@ -0,0 +1,5 @@ +// compile-flags:-l static= +// error-pattern: library name must not be empty + +fn main() { +} diff --git a/tests/ui/manual/manual-link-bad-form.stderr b/tests/ui/manual/manual-link-bad-form.stderr new file mode 100644 index 000000000..7fd7a1066 --- /dev/null +++ b/tests/ui/manual/manual-link-bad-form.stderr @@ -0,0 +1,2 @@ +error: library name must not be empty + diff --git a/tests/ui/manual/manual-link-bad-kind.rs b/tests/ui/manual/manual-link-bad-kind.rs new file mode 100644 index 000000000..c50a6c034 --- /dev/null +++ b/tests/ui/manual/manual-link-bad-kind.rs @@ -0,0 +1,5 @@ +// compile-flags:-l bar=foo +// error-pattern: unknown library kind `bar`, expected one of: static, dylib, framework, link-arg + +fn main() { +} diff --git a/tests/ui/manual/manual-link-bad-kind.stderr b/tests/ui/manual/manual-link-bad-kind.stderr new file mode 100644 index 000000000..647c4c61e --- /dev/null +++ b/tests/ui/manual/manual-link-bad-kind.stderr @@ -0,0 +1,2 @@ +error: unknown library kind `bar`, expected one of: static, dylib, framework, link-arg + diff --git a/tests/ui/manual/manual-link-bad-search-path.rs b/tests/ui/manual/manual-link-bad-search-path.rs new file mode 100644 index 000000000..0fe23b02a --- /dev/null +++ b/tests/ui/manual/manual-link-bad-search-path.rs @@ -0,0 +1,5 @@ +// compile-flags:-L native= +// error-pattern: empty search path given via `-L` + +fn main() { +} diff --git a/tests/ui/manual/manual-link-bad-search-path.stderr b/tests/ui/manual/manual-link-bad-search-path.stderr new file mode 100644 index 000000000..2c0649ea1 --- /dev/null +++ b/tests/ui/manual/manual-link-bad-search-path.stderr @@ -0,0 +1,2 @@ +error: empty search path given via `-L` + diff --git a/tests/ui/manual/manual-link-framework.rs b/tests/ui/manual/manual-link-framework.rs new file mode 100644 index 000000000..57c5966e9 --- /dev/null +++ b/tests/ui/manual/manual-link-framework.rs @@ -0,0 +1,7 @@ +// ignore-macos +// ignore-ios +// compile-flags:-l framework=foo +// error-pattern: library kind `framework` is only supported on Apple targets + +fn main() { +} diff --git a/tests/ui/manual/manual-link-framework.stderr b/tests/ui/manual/manual-link-framework.stderr new file mode 100644 index 000000000..de045d56c --- /dev/null +++ b/tests/ui/manual/manual-link-framework.stderr @@ -0,0 +1,4 @@ +error: library kind `framework` is only supported on Apple targets + +error: aborting due to previous error + diff --git a/tests/ui/manual/manual-link-unsupported-kind.rs b/tests/ui/manual/manual-link-unsupported-kind.rs new file mode 100644 index 000000000..b8ec575a4 --- /dev/null +++ b/tests/ui/manual/manual-link-unsupported-kind.rs @@ -0,0 +1,5 @@ +// compile-flags:-l raw-dylib=foo +// error-pattern: unknown library kind `raw-dylib`, expected one of: static, dylib, framework, link-arg + +fn main() { +} diff --git a/tests/ui/manual/manual-link-unsupported-kind.stderr b/tests/ui/manual/manual-link-unsupported-kind.stderr new file mode 100644 index 000000000..ae4a1ec9a --- /dev/null +++ b/tests/ui/manual/manual-link-unsupported-kind.stderr @@ -0,0 +1,2 @@ +error: unknown library kind `raw-dylib`, expected one of: static, dylib, framework, link-arg + -- cgit v1.2.3