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