about summary refs log tree commit diff
path: root/tests/codegen/issues/issue-122600-ptr-discriminant-update.rs
AgeCommit message (Collapse)AuthorLines
2025-07-22Rename `tests/codegen` into `tests/codegen-llvm`Guillaume Gomez-43/+0
2025-04-06Rollup merge of #139438 - Zalathar:fix-test-122600, r=scottmcmStuart Cook-0/+2
Prevent a test from seeing forbidden numbers in the rustc version The final CHECK-NOT directive in this test was able to see past the end of the enclosing function, and find the substring `753` or `754` in the git hash in the rustc version number, causing false failures in CI whenever the git hash happens to contain those digits in sequence. Adding an explicit check for `ret` prevents the CHECK-NOT directive from seeing past the end of the function. --- Manually tested by adding `// CHECK-NOT: rustc` after the existing CHECK-NOT directives, and demonstrating that the new check prevents it from seeing the rustc version string.
2025-04-06Prevent a test from seeing forbidden numbers in the rustc versionZalathar-0/+2
The final CHECK-NOT directive in this test was able to see past the end of the enclosing function, and find the substring 753 or 754 in the git hash in the rustc version number, causing false failures in CI. Adding an explicit check for `ret` prevents the CHECK-NOT directive from seeing past the end of the function.
2025-04-05Update the minimum external LLVM to 19Josh Stone-1/+0
2025-03-06Use `trunc nuw`+`br` for 0/1 branches even in optimized buildsScott McMurray-3/+26
Rather than needing to use `switch` for them to include the `unreachable` arm
2025-02-11tests/codegen: use -Copt-level=3 instead of -OJubilee Young-1/+1
2024-08-03Add test for updating enum discriminant through pointerclubby789-0/+19