352b505f80
Add a test confirming that `-Zbranch-protection=pac-ret` and cross-language LTO work together.
11 lines
108 B
Rust
11 lines
108 B
Rust
#[link(name = "test")]
|
|
extern "C" {
|
|
fn foo() -> i32;
|
|
}
|
|
|
|
fn main() {
|
|
unsafe {
|
|
foo();
|
|
}
|
|
}
|