mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
FileCheck mult_by_zero.
This commit is contained in:
parent
8e9b912c4c
commit
902a3e2e75
@ -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…
Reference in New Issue
Block a user