summaryrefslogtreecommitdiffstats
path: root/src/test/ui/osx-frameworks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/osx-frameworks.rs')
-rw-r--r--src/test/ui/osx-frameworks.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/osx-frameworks.rs b/src/test/ui/osx-frameworks.rs
new file mode 100644
index 000000000..958183ec0
--- /dev/null
+++ b/src/test/ui/osx-frameworks.rs
@@ -0,0 +1,7 @@
+// ignore-macos this is supposed to succeed on osx
+
+#[link(name = "foo", kind = "framework")]
+extern "C" {}
+//~^^ ERROR: link kind `framework` is only supported on Apple targets
+
+fn main() {}