summaryrefslogtreecommitdiffstats
path: root/tests/run-make/pointer-auth-link-with-c/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/pointer-auth-link-with-c/test.rs')
-rw-r--r--tests/run-make/pointer-auth-link-with-c/test.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run-make/pointer-auth-link-with-c/test.rs b/tests/run-make/pointer-auth-link-with-c/test.rs
new file mode 100644
index 000000000..615ad0aeb
--- /dev/null
+++ b/tests/run-make/pointer-auth-link-with-c/test.rs
@@ -0,0 +1,8 @@
+#[link(name = "test")]
+extern "C" {
+ fn foo() -> i32;
+}
+
+fn main() {
+ unsafe {foo();}
+}