summaryrefslogtreecommitdiffstats
path: root/tests/ui/native-library-link-flags/link-arg-from-rs.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/native-library-link-flags/link-arg-from-rs.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/ui/native-library-link-flags/link-arg-from-rs.rs b/tests/ui/native-library-link-flags/link-arg-from-rs.rs
index 075e4d9e7..4a6017fea 100644
--- a/tests/ui/native-library-link-flags/link-arg-from-rs.rs
+++ b/tests/ui/native-library-link-flags/link-arg-from-rs.rs
@@ -1,8 +1,7 @@
-// link-arg is not supposed to be usable in #[link] attributes
+#![feature(link_arg_attribute)]
-// compile-flags:
-// error-pattern: error[E0458]: unknown link kind `link-arg`, expected one of: static, dylib, framework, raw-dylib
-
-#[link(kind = "link-arg")]
+#[link(kind = "link-arg", name = "arg", modifiers = "+bundle")]
+//~^ ERROR linking modifier `bundle` is only compatible with `static` linking kind
extern "C" {}
+
pub fn main() {}