diff options
Diffstat (limited to 'tests/ui/manual')
-rw-r--r-- | tests/ui/manual/manual-link-bad-form.rs | 5 | ||||
-rw-r--r-- | tests/ui/manual/manual-link-bad-form.stderr | 2 | ||||
-rw-r--r-- | tests/ui/manual/manual-link-bad-kind.rs | 5 | ||||
-rw-r--r-- | tests/ui/manual/manual-link-bad-kind.stderr | 2 | ||||
-rw-r--r-- | tests/ui/manual/manual-link-bad-search-path.rs | 5 | ||||
-rw-r--r-- | tests/ui/manual/manual-link-bad-search-path.stderr | 2 | ||||
-rw-r--r-- | tests/ui/manual/manual-link-framework.rs | 7 | ||||
-rw-r--r-- | tests/ui/manual/manual-link-framework.stderr | 4 | ||||
-rw-r--r-- | tests/ui/manual/manual-link-unsupported-kind.rs | 5 | ||||
-rw-r--r-- | tests/ui/manual/manual-link-unsupported-kind.stderr | 2 |
10 files changed, 39 insertions, 0 deletions
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 + |