summary refs log tree commit diff
path: root/src/test/ui/consts/offset_ub.rs
AgeCommit message (Collapse)AuthorLines
2022-02-13stabilize const_ptr_offsetSaltyKitkat-1/+0
2021-07-18miri: better ptr-out-of-bounds errorsRalf Jung-0/+1
2021-07-14adjust testsRalf Jung-0/+2
2021-04-03Remove redundant `ignore-tidy-linelength` annotationsSimon Jakobi-1/+0
This is step 2 towards fixing #77548. In the codegen and codegen-units test suites, the `//` comment markers were kept in order not to affect any source locations. This is because these tests cannot be automatically `--bless`ed.
2020-05-26Add checks and tests for computing abs(offset_bytes)Joe Richey-0/+3
The previous code paniced if offset_bytes == i64::MIN. This commit: - Properly computes the absoulte value to avoid this panic - Adds a test for this edge case Signed-off-by: Joe Richey <joerichey@google.com>
2020-05-25test/ui/consts: Add tests for const ptr offsetsJoe Richey-0/+22
Signed-off-by: Joe Richey <joerichey@google.com>