]> git.proxmox.com Git - rustc.git/blobdiff - tests/run-make/pointer-auth-link-with-c/test.rs
Merge 1.70 into proxmox/bookworm
[rustc.git] / tests / run-make / pointer-auth-link-with-c / test.rs
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 (file)
index 0000000..615ad0a
--- /dev/null
@@ -0,0 +1,8 @@
+#[link(name = "test")]
+extern "C" {
+    fn foo() -> i32;
+}
+
+fn main() {
+    unsafe {foo();}
+}