about summary refs log tree commit diff
path: root/tests/ui/mir/mir_codegen_spike1.rs
blob: 122397766b6577d2f395211c060b2f31e9f0077b (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);
}