2020-04-16 15:50:32 +09:00
|
|
|
//@ run-fail
|
2015-03-14 14:21:43 +01:00
|
|
|
//@ error-pattern:panic evaluated
|
2025-01-23 16:36:54 +08:00
|
|
|
//@ needs-subprocess
|
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];
|
|
|
|
|
}
|