Support structs and single-variant enums.
This commit is contained in:
parent
fd10ec9278
commit
8a0b95bc8b
3 changed files with 61 additions and 47 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue