blob: 2e9c63a1ca179934fbc7bbc91eea549d973f02cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// unit-test: ConstProp
// EMIT_MIR mult_by_zero.test.ConstProp.diff
fn test(x: i32) -> i32 {
// CHECK: fn test(
// CHECK: _0 = const 0_i32;
x * 0
}
fn main() {
test(10);
}
|