1 // This test checks an optimization that is not guaranteed to work. This test case should not block
2 // a future LLVM update.
13 // CHECK-LABEL: @access
15 pub fn access(array: &[usize; 12], exc: Exception) -> usize {
16 // FIXME: panic check can be removed by adding the assumes back after https://github.com/rust-lang/rust/pull/98332
17 // CHECK: panic_bounds_check
18 array[(exc as u8 - 4) as usize]