Skip to content

Commit cec2ad7

Browse files
committed
Update tests
1 parent cd57b02 commit cec2ad7

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎tests/unit/out/refcount/stmt_expr.rs‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ fn main_0() -> i32 {
4141
inner
4242
} == 100)
4343
);
44+
{
45+
counter.postfix_inc()
46+
};
47+
{
48+
if (counter != 2) {
49+
counter = 2;
50+
}
51+
};
52+
assert!((counter == 2));
4453
return 0;
4554
}
4655
pub fn __cpp2rust_init_globals() {}

‎tests/unit/out/unsafe/stmt_expr.rs‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ unsafe fn main_0() -> i32 {
4343
inner
4444
}) == (100))
4545
);
46+
{
47+
counter.postfix_inc()
48+
};
49+
{
50+
if ((counter) != (2)) {
51+
counter = 2;
52+
}
53+
};
54+
assert!(((counter) == (2)));
4655
return 0;
4756
}
4857
pub unsafe fn __cpp2rust_init_globals() {}

0 commit comments

Comments
 (0)