about summary refs log tree commit diff
path: root/tests/ui/using-target-feature-unstable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/using-target-feature-unstable.rs')
-rw-r--r--tests/ui/using-target-feature-unstable.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/using-target-feature-unstable.rs b/tests/ui/using-target-feature-unstable.rs
new file mode 100644
index 00000000000..c5da45c0854
--- /dev/null
+++ b/tests/ui/using-target-feature-unstable.rs
@@ -0,0 +1,11 @@
+// run-pass
+// only-x86_64
+// aux-build:using-target-feature-unstable.rs
+
+extern crate using_target_feature_unstable;
+
+fn main() {
+    unsafe {
+        using_target_feature_unstable::foo();
+    }
+}