rust/tests/run-make/pointer-auth-link-with-c-lto-clang/test.rs
David Wood 352b505f80
tests: add pac-ret + cross-language lto test
Add a test confirming that `-Zbranch-protection=pac-ret` and
cross-language LTO work together.
2024-10-24 16:49:12 +01:00

11 lines
108 B
Rust

#[link(name = "test")]
extern "C" {
fn foo() -> i32;
}
fn main() {
unsafe {
foo();
}
}