From 0a48b96859d3d66138082ffad6a1057b54cd55c7 Mon Sep 17 00:00:00 2001 From: Zalathar Date: Sat, 7 Dec 2024 12:35:30 +1100 Subject: Move more tests into `tests/ui/link-native-libs` --- tests/ui/link-native-libs/kind-framework.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/ui/link-native-libs/kind-framework.rs (limited to 'tests/ui/link-native-libs/kind-framework.rs') 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() {} -- cgit 1.4.1-3-g733a5