Skip to content

Commit 17a9d34

Browse files
committed
Add ub-checks to slice_index MIR-opt test
1 parent 3fc81da commit 17a9d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/mir-opt/pre-codegen/slice_index.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// skip-filecheck
2-
//@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2
2+
//@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2 -Z ub-checks=yes
33
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
44

55
#![crate_type = "lib"]

0 commit comments

Comments
 (0)