blob: 1238ffe696e9631577e3f5fac3eb4178e36fb4ab [file]
//! Regression test for <https://github.com/rust-lang/rust/issues/23354>.
//! Check expr in [expr; N] is always being evaluated.
//!
//! This used to trigger an LLVM assertion during compilation
//@ run-fail
//@ error-pattern:panic evaluated
//@ needs-subprocess
#[allow(unused_variables)]
fn main() {
let x = [panic!("panic evaluated"); 2];
}