summary refs log tree commit diff
path: root/src/test/ui/consts/offset_ub.rs
AgeCommit message (Collapse)AuthorLines
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>