make sure that the no-panic test tests what it is supposed to test

This commit is contained in:
Ralf Jung 2018-07-29 22:29:49 +02:00
parent 90165b82fc
commit 50773991d3

View File

@ -32,3 +32,11 @@ pub fn position_no_bounds_check(y: &mut [u32], x: &u32, z: &u32) -> bool {
false
}
}
// just to make sure that panicking really emits "panic" somewhere in the IR
// CHECK-LABEL: @test_check
#[no_mangle]
pub fn test_check() {
// CHECK: panic
unreachable!()
}