blob: e779e2ef27439008ab39cc6011d293ea81d4566e [file] [log] [blame]
// compile-flags: -O
// min-llvm-version: 11.0
#![crate_type = "lib"]
#[repr(C)]
pub enum E {
A,
}
// CHECK-LABEL: @index
#[no_mangle]
pub fn index(x: &[u32; 3], ind: E) -> u32{
// CHECK-NOT: panic_bounds_check
x[ind as usize]
}