diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/manual | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/manual')
-rw-r--r-- | src/test/ui/manual/manual-link-bad-form.rs | 5 | ||||
-rw-r--r-- | src/test/ui/manual/manual-link-bad-form.stderr | 2 | ||||
-rw-r--r-- | src/test/ui/manual/manual-link-bad-kind.rs | 5 | ||||
-rw-r--r-- | src/test/ui/manual/manual-link-bad-kind.stderr | 2 | ||||
-rw-r--r-- | src/test/ui/manual/manual-link-bad-search-path.rs | 5 | ||||
-rw-r--r-- | src/test/ui/manual/manual-link-bad-search-path.stderr | 2 | ||||
-rw-r--r-- | src/test/ui/manual/manual-link-framework.rs | 7 | ||||
-rw-r--r-- | src/test/ui/manual/manual-link-framework.stderr | 4 | ||||
-rw-r--r-- | src/test/ui/manual/manual-link-unsupported-kind.rs | 5 | ||||
-rw-r--r-- | src/test/ui/manual/manual-link-unsupported-kind.stderr | 2 |
10 files changed, 39 insertions, 0 deletions
diff --git a/src/test/ui/manual/manual-link-bad-form.rs b/src/test/ui/manual/manual-link-bad-form.rs new file mode 100644 index 000000000..bc9b6be02 --- /dev/null +++ b/src/test/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/src/test/ui/manual/manual-link-bad-form.stderr b/src/test/ui/manual/manual-link-bad-form.stderr new file mode 100644 index 000000000..7fd7a1066 --- /dev/null +++ b/src/test/ui/manual/manual-link-bad-form.stderr @@ -0,0 +1,2 @@ +error: library name must not be empty + diff --git a/src/test/ui/manual/manual-link-bad-kind.rs b/src/test/ui/manual/manual-link-bad-kind.rs new file mode 100644 index 000000000..c50a6c034 --- /dev/null +++ b/src/test/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/src/test/ui/manual/manual-link-bad-kind.stderr b/src/test/ui/manual/manual-link-bad-kind.stderr new file mode 100644 index 000000000..647c4c61e --- /dev/null +++ b/src/test/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/src/test/ui/manual/manual-link-bad-search-path.rs b/src/test/ui/manual/manual-link-bad-search-path.rs new file mode 100644 index 000000000..0fe23b02a --- /dev/null +++ b/src/test/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/src/test/ui/manual/manual-link-bad-search-path.stderr b/src/test/ui/manual/manual-link-bad-search-path.stderr new file mode 100644 index 000000000..2c0649ea1 --- /dev/null +++ b/src/test/ui/manual/manual-link-bad-search-path.stderr @@ -0,0 +1,2 @@ +error: empty search path given via `-L` + diff --git a/src/test/ui/manual/manual-link-framework.rs b/src/test/ui/manual/manual-link-framework.rs new file mode 100644 index 000000000..57c5966e9 --- /dev/null +++ b/src/test/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/src/test/ui/manual/manual-link-framework.stderr b/src/test/ui/manual/manual-link-framework.stderr new file mode 100644 index 000000000..de045d56c --- /dev/null +++ b/src/test/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/src/test/ui/manual/manual-link-unsupported-kind.rs b/src/test/ui/manual/manual-link-unsupported-kind.rs new file mode 100644 index 000000000..b8ec575a4 --- /dev/null +++ b/src/test/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/src/test/ui/manual/manual-link-unsupported-kind.stderr b/src/test/ui/manual/manual-link-unsupported-kind.stderr new file mode 100644 index 000000000..ae4a1ec9a --- /dev/null +++ b/src/test/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 + |