diff options
Diffstat (limited to 'src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.rs')
-rw-r--r-- | src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.rs b/src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.rs new file mode 100644 index 000000000..066048795 --- /dev/null +++ b/src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.rs @@ -0,0 +1,8 @@ +// compile-flags: -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 + +#[link(name = "mylib", kind = "static", modifiers = "+bundle,+whole-archive")] +extern "C" { } + +fn main() { } |