about summary refs log tree commit diff
path: root/tests/ui/link-native-libs/kind-framework.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-12-07 12:35:30 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-12-07 13:18:05 +1100
commit0a48b96859d3d66138082ffad6a1057b54cd55c7 (patch)
tree288a97704a5b6b9089eb13eb887868943285f91d /tests/ui/link-native-libs/kind-framework.rs
parentf884f18151d63ac9ce7e573cadb165ecbe8d7f9b (diff)
downloadrust-0a48b96859d3d66138082ffad6a1057b54cd55c7.tar.gz
rust-0a48b96859d3d66138082ffad6a1057b54cd55c7.zip
Move more tests into `tests/ui/link-native-libs`
Diffstat (limited to 'tests/ui/link-native-libs/kind-framework.rs')
-rw-r--r--tests/ui/link-native-libs/kind-framework.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/link-native-libs/kind-framework.rs b/tests/ui/link-native-libs/kind-framework.rs
new file mode 100644
index 00000000000..c2f90809e03
--- /dev/null
+++ b/tests/ui/link-native-libs/kind-framework.rs
@@ -0,0 +1,7 @@
+//@ ignore-apple this is supposed to succeed on Apple platforms (though it won't necessarily link)
+
+#[link(name = "foo", kind = "framework")]
+extern "C" {}
+//~^^ ERROR: link kind `framework` is only supported on Apple targets
+
+fn main() {}