summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lto/issue-11154.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/lto/issue-11154.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/lto/issue-11154.rs b/src/test/ui/lto/issue-11154.rs
new file mode 100644
index 000000000..e11cdc82f
--- /dev/null
+++ b/src/test/ui/lto/issue-11154.rs
@@ -0,0 +1,6 @@
+// build-fail
+// compile-flags: -C lto -C prefer-dynamic
+
+// error-pattern: cannot prefer dynamic linking
+
+fn main() {}