FileCheck mult_by_zero.
This commit is contained in:
parent
8e9b912c4c
commit
902a3e2e75
1 changed files with 4 additions and 3 deletions
|
@ -1,9 +1,10 @@
|
|||
// skip-filecheck
|
||||
// unit-test: ConstProp
|
||||
|
||||
// EMIT_MIR mult_by_zero.test.ConstProp.diff
|
||||
fn test(x : i32) -> i32 {
|
||||
x * 0
|
||||
fn test(x: i32) -> i32 {
|
||||
// CHECK: fn test(
|
||||
// CHECK: _0 = const 0_i32;
|
||||
x * 0
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Add table
Reference in a new issue