diff options
| author | bors <bors@rust-lang.org> | 2025-09-03 19:07:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-09-03 19:07:55 +0000 |
| commit | a1208bf765ba783ee4ebdc4c29ab0a0c215806ef (patch) | |
| tree | 4f9ad1f420dbfe8b572336a336a98c9e00c26928 /tests | |
| parent | fd75a9c32d643f39c8c61df770d2cff60b3fefd5 (diff) | |
| parent | 916b55e08217ca14dabec0169067ed8d6523bf6e (diff) | |
| download | rust-a1208bf765ba783ee4ebdc4c29ab0a0c215806ef.tar.gz rust-a1208bf765ba783ee4ebdc4c29ab0a0c215806ef.zip | |
Auto merge of #146133 - rcvalle:rust-cfi-fix-145981, r=bjorn3
Revert "Make `lto` and `linker-plugin-lto` work the same for `compiler_builtins` This reverts commit cf8753e4f9c3597f04cd5d3aa261e4561d5378a6 (PR https://github.com/rust-lang/rust/pull/145368) and fix the regressions reported at rust-lang/rust#145981, rust-lang/rust#146109, and rust-lang/rust#146145.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/sanitizer/cfi/no_builtins.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/ui/sanitizer/cfi/no_builtins.rs b/tests/ui/sanitizer/cfi/no_builtins.rs deleted file mode 100644 index 949057689ab..00000000000 --- a/tests/ui/sanitizer/cfi/no_builtins.rs +++ /dev/null @@ -1,22 +0,0 @@ -// Verifies that `#![no_builtins]` crates can be built with linker-plugin-lto and CFI. -// See Issue #142284 -// -//@ needs-sanitizer-cfi -//@ compile-flags: -Clinker-plugin-lto -Copt-level=0 -Zsanitizer=cfi -Ctarget-feature=-crt-static -//@ compile-flags: --crate-type rlib -//@ build-pass - -#![no_builtins] -#![no_std] - -pub static FUNC: fn() = initializer; - -pub fn initializer() { - call(fma_with_fma); -} - -pub fn call(fn_ptr: fn()) { - fn_ptr(); -} - -pub fn fma_with_fma() {} |
