2023-10-17 01:36:39 +08:00
|
|
|
// skip-filecheck
|
2023-04-23 20:30:02 +08:00
|
|
|
// unit-test: ConstProp
|
2020-07-19 06:43:51 +08:00
|
|
|
|
2020-07-28 03:22:43 +08:00
|
|
|
// EMIT_MIR mult_by_zero.test.ConstProp.diff
|
2020-07-19 06:43:51 +08:00
|
|
|
fn test(x : i32) -> i32 {
|
|
|
|
x * 0
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test(10);
|
|
|
|
}
|