Support structs and single-variant enums.

This commit is contained in:
Scott Olson 2016-03-11 21:27:54 -06:00
parent fd10ec9278
commit 8a0b95bc8b
3 changed files with 61 additions and 47 deletions

View file

@ -61,6 +61,13 @@ fn if_true() -> i32 {
if true { 1 } else { 0 }
}
struct Pair { x: i64, y: i64 }
#[miri_run]
fn pair() -> Pair {
Pair { x: 10, y: 20 }
}
// #[miri_run(expected = "Int(2)")]
// fn call() -> i32 {
// fn increment(x: i32) -> i32 {