about summary refs log tree commit diff
path: root/tests/ui/consts/ptr_comparisons.rs
AgeCommit message (Collapse)AuthorLines
2025-08-23Remove arm::t32-specific function pointer test.Zachary S-19/+3
All function pointers are currently treated as unaligned anyway; any change implementing function pointer alignment during consteval should add tests that it works properly on arm::t32 functions.
2025-08-23Implement some more checks for `ptr_guaranteed_cmp` in consteval:Zachary S-30/+208
Pointers with different residues modulo their least common allocation alignment are never equal. Pointers to the same static allocation are equal if and only if they have the same offset. Strictly in-bounds (in-bounds and not one-past-the-end) pointers to different static allocations are always unequal. A pointer cannot be equal to an integer if `ptr-int` cannot be null. Also adds more tests for `ptr_guaranteed_cmp`. Co-authored-by: Ralf Jung <post@ralfj.de>
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-2/+2
2023-08-01fix and extend ptr_comparison testRalf Jung-28/+8
2023-01-11Move /src/test to /testsAlbert Larsan-0/+63