2023-04-23 07:30:02 -05:00
|
|
|
// unit-test: ConstProp
|
2020-07-18 17:43:51 -05:00
|
|
|
|
2020-07-27 14:22:43 -05:00
|
|
|
// EMIT_MIR mult_by_zero.test.ConstProp.diff
|
2023-12-02 14:39:26 -06:00
|
|
|
fn test(x: i32) -> i32 {
|
|
|
|
// CHECK: fn test(
|
|
|
|
// CHECK: _0 = const 0_i32;
|
|
|
|
x * 0
|
2020-07-18 17:43:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test(10);
|
|
|
|
}
|