summaryrefslogtreecommitdiffstats
path: root/tests/ui/invalid-compile-flags
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/invalid-compile-flags')
-rw-r--r--tests/ui/invalid-compile-flags/invalid-llvm-passes.rs4
-rw-r--r--tests/ui/invalid-compile-flags/invalid-llvm-passes.stderr4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/invalid-compile-flags/invalid-llvm-passes.rs b/tests/ui/invalid-compile-flags/invalid-llvm-passes.rs
new file mode 100644
index 000000000..ee28f5eb6
--- /dev/null
+++ b/tests/ui/invalid-compile-flags/invalid-llvm-passes.rs
@@ -0,0 +1,4 @@
+// build-fail
+// compile-flags: -Cpasses=unknown-pass
+
+fn main() {}
diff --git a/tests/ui/invalid-compile-flags/invalid-llvm-passes.stderr b/tests/ui/invalid-compile-flags/invalid-llvm-passes.stderr
new file mode 100644
index 000000000..ae1f85e41
--- /dev/null
+++ b/tests/ui/invalid-compile-flags/invalid-llvm-passes.stderr
@@ -0,0 +1,4 @@
+error: failed to run LLVM passes: unknown pass name 'unknown-pass'
+
+error: aborting due to previous error
+