mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
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();
|
|
}
|
|
}
|