]> git.lizzy.rs Git - rust.git/blob - tests/ui/mir/mir_codegen_spike1.rs
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / ui / mir / mir_codegen_spike1.rs
1 // run-pass
2 // A simple spike test for MIR version of codegen.
3
4 fn sum(x: i32, y: i32) -> i32 {
5     x + y
6 }
7
8 fn main() {
9     let x = sum(22, 44);
10     assert_eq!(x, 66);
11     println!("sum()={:?}", x);
12 }