1 // This test checks an optimization that is not guaranteed to work. This test case should not block
2 // a future LLVM update.
4 // min-llvm-version: 11.0
14 // CHECK-LABEL: @access
16 pub fn access(array: &[usize; 12], exc: Exception) -> usize {
17 // CHECK-NOT: panic_bounds_check
18 array[(exc as u8 - 4) as usize]