2020-04-16 15:50:32 +09:00
|
|
|
// run-fail
|
2015-03-14 14:21:43 +01:00
|
|
|
// error-pattern:panic evaluated
|
2020-05-08 00:39:02 +09:00
|
|
|
// ignore-emscripten no processes
|
2015-03-14 14:21:43 +01:00
|
|
|
|
|
|
|
#[allow(unused_variables)]
|
|
|
|
fn main() {
|
|
|
|
// This used to trigger an LLVM assertion during compilation
|
|
|
|
let x = [panic!("panic evaluated"); 2];
|
|
|
|
}
|