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