summaryrefslogtreecommitdiffstats
path: root/src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs')
-rw-r--r--src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs b/src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs
new file mode 100644
index 000000000..1d0768d99
--- /dev/null
+++ b/src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs
@@ -0,0 +1,7 @@
+// Mixing +bundle and +whole-archive is not allowed
+
+// compile-flags: -l static:+bundle,+whole-archive=mylib -Zunstable-options --crate-type rlib
+// build-fail
+// error-pattern: the linking modifiers `+bundle` and `+whole-archive` are not compatible with each other when generating rlibs
+
+fn main() { }