blob: 90bdd6b4bd71c8607ea0d5b8bcc1c1a99e6f2151 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// run-pass
// A simple spike test for MIR version of codegen.
fn sum(x: i32, y: i32) -> i32 {
x + y
}
fn main() {
let x = sum(22, 44);
assert_eq!(x, 66);
println!("sum()={:?}", x);
}
|