rust/tests/ui/abi
Bastian Kersting b151b513ba Insert null checks for pointer dereferences when debug assertions are enabled
Similar to how the alignment is already checked, this adds a check
for null pointer dereferences in debug mode. It is implemented similarly
to the alignment check as a MirPass.

This is related to a 2025H1 project goal for better UB checks in debug
mode: https://github.com/rust-lang/rust-project-goals/pull/177.
2025-01-31 11:13:34 +00:00
..
cross-crate tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
extern tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
foreign tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issues Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
mir Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
numbers-arithmetic Ensure tests don't fail on i586 in CI 2024-07-01 17:39:30 +01:00
statics Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
struct-enums Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
union Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
abi-sysv64-arg-passing.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
abi-sysv64-register-usage.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
abi-typo-unstable.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
abi-typo-unstable.stderr Fix remaining cases 2024-06-21 19:00:18 -04:00
anon-extern-mod.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
arm-unadjusted-intrinsic.rs Ban non-array SIMD 2024-09-09 19:39:43 -07:00
c-stack-as-value.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
c-stack-returning-int64.rs Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
c-zst.aarch64-darwin.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
c-zst.powerpc-linux.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
c-zst.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
c-zst.s390x-linux.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
c-zst.sparc64-linux.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
c-zst.x86_64-linux.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
c-zst.x86_64-pc-windows-gnu.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
cabi-int-widening.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
compatibility.rs tests: use minicore in tests/ui/abi/compatibility.rs as an example 2024-10-31 18:20:11 +08:00
debug.rs adjust UI tests 2025-01-10 02:22:57 +01:00
debug.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
explicit_repr_rust.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fixed_x18.rs Simplify check for unsupported architectures 2024-05-29 16:58:46 +02:00
homogenous-floats-target-feature-mixup.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
issue-28676.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
large-byval-align.rs Crash test for issue 121444 has been fixed 2024-07-30 10:22:48 +02:00
lib-defaults.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
nullable-pointer-ffi-compat.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
relocation_model_pic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
removed-wasm-abi.rs Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
removed-wasm-abi.stderr Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
riscv-discoverability-guidance.riscv32.stderr Fix remaining cases 2024-06-21 19:00:18 -04:00
riscv-discoverability-guidance.riscv64.stderr Fix remaining cases 2024-06-21 19:00:18 -04:00
riscv-discoverability-guidance.rs llvm: update riscv target feature to match LLVM 19 2024-04-17 16:15:24 -04:00
rustcall-generic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
segfault-no-out-of-stack.rs Insert null checks for pointer dereferences when debug assertions are enabled 2025-01-31 11:13:34 +00:00
shadow-call-stack-without-fixed-x18.rs unconditionally allow shadow call-stack for AArch64 whenever fixed-x18 is applied 2024-08-09 19:35:02 +08:00
sparcv8plus-llvm19.rs Fix sparcv8plus test on LLVM 20 2025-01-23 10:15:04 +01:00
sparcv8plus-llvm19.sparc_cpu_v9_feature_v8plus.stderr Fix sparcv8plus test on LLVM 20 2025-01-23 10:15:04 +01:00
sparcv8plus-llvm19.sparc_cpu_v9.stderr Fix sparcv8plus test on LLVM 20 2025-01-23 10:15:04 +01:00
sparcv8plus-llvm19.sparc_feature_v8plus.stderr Fix sparcv8plus test on LLVM 20 2025-01-23 10:15:04 +01:00
sparcv8plus-llvm19.sparc.stderr Fix sparcv8plus test on LLVM 20 2025-01-23 10:15:04 +01:00
sparcv8plus-llvm19.sparcv8plus.stderr Fix sparcv8plus test on LLVM 20 2025-01-23 10:15:04 +01:00
sparcv8plus.rs Fix sparcv8plus test on LLVM 20 2025-01-23 10:15:04 +01:00
sparcv8plus.sparc_cpu_v9_feature_v8plus.stderr Fix sparcv8plus test on LLVM 20 2025-01-23 10:15:04 +01:00
sparcv8plus.sparc_cpu_v9.stderr Fix sparcv8plus test on LLVM 20 2025-01-23 10:15:04 +01:00
sparcv8plus.sparc_feature_v8plus.stderr Fix sparcv8plus test on LLVM 20 2025-01-23 10:15:04 +01:00
sparcv8plus.sparc.stderr Add v8plus target feature to sparc and use it in create_object_file 2024-11-09 03:22:09 +09:00
sparcv8plus.sparcv8plus.stderr Fix sparcv8plus test on LLVM 20 2025-01-23 10:15:04 +01:00
stack-probes-lto.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
stack-probes.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
stack-protector.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sysv64-zst.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
sysv64-zst.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
unsized-args-in-c-abi-issues-94223-115845.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsupported.aarch64.stderr Add gpu-kernel calling convention 2025-01-16 00:26:55 +01:00
unsupported.arm.stderr Add gpu-kernel calling convention 2025-01-16 00:26:55 +01:00
unsupported.i686.stderr Add gpu-kernel calling convention 2025-01-16 00:26:55 +01:00
unsupported.riscv32.stderr Add gpu-kernel calling convention 2025-01-16 00:26:55 +01:00
unsupported.riscv64.stderr Add gpu-kernel calling convention 2025-01-16 00:26:55 +01:00
unsupported.rs Add gpu-kernel calling convention 2025-01-16 00:26:55 +01:00
unsupported.x64.stderr Add gpu-kernel calling convention 2025-01-16 00:26:55 +01:00
variadic-ffi.rs Allow "C-unwind" fn to have C variadics 2024-06-22 15:14:14 -07:00
x86stdcall2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
x86stdcall.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00