diff options
| author | Ramon de C Valle <rcvalle@users.noreply.github.com> | 2025-09-02 11:23:48 -0700 |
|---|---|---|
| committer | Ramon de C Valle <rcvalle@users.noreply.github.com> | 2025-09-02 13:11:19 -0700 |
| commit | 916b55e08217ca14dabec0169067ed8d6523bf6e (patch) | |
| tree | 67e3465a42f1763bdc26eb053c9775d4bd097e9b /tests | |
| parent | db3fd4708c3916bbc59b81ff7d3f6e19d11820c7 (diff) | |
| download | rust-916b55e08217ca14dabec0169067ed8d6523bf6e.tar.gz rust-916b55e08217ca14dabec0169067ed8d6523bf6e.zip | |
Revert "Make `lto` and `linker-plugin-lto` work the same for `compiler_builtins`"
This reverts commit cf8753e4f9c3597f04cd5d3aa261e4561d5378a6 and fixes the regressions reported.
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() {} |
