rust/tests/mir-opt/const_prop/issue_67019.rs
2023-04-06 10:08:07 +01:00

15 lines
292 B
Rust

// ignore-wasm32 compiled with panic=abort by default
// unit-test: ConstProp
// compile-flags: -Z mir-opt-level=3
// This used to ICE in const-prop
fn test(this: ((u8, u8),)) {
assert!((this.0).0 == 1);
}
// EMIT_MIR issue_67019.main.ConstProp.diff
fn main() {
test(((1, 2),));
}