Skip to content

Commit 98f8429

Browse files
committed
Update tests
1 parent 3881855 commit 98f8429

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎cpp2rust/converter/models/converter_refcount.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ class ConverterRefCount final : public Converter {
148148
bool VisitCXXConstructExpr(clang::CXXConstructExpr *expr) override;
149149

150150
bool VisitImplicitValueInitExpr(clang::ImplicitValueInitExpr *expr) override;
151-
bool VisitCXXScalarValueInitExpr(clang::CXXScalarValueInitExpr *expr) override;
151+
bool
152+
VisitCXXScalarValueInitExpr(clang::CXXScalarValueInitExpr *expr) override;
152153

153154
bool VisitVAArgExpr(clang::VAArgExpr *expr) override;
154155

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ fn main_0() -> i32 {
2828
assert!((({ zero_1() }) == 0_i64));
2929
let x: Value<i32> = Rc::new(RefCell::new(5));
3030
({ destroy_2((x.as_pointer())) });
31-
i32;
3231
assert!(((*x.borrow()) == 5));
3332
return 0;
3433
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ unsafe fn main_0() -> i32 {
2828
assert!(((unsafe { zero_1() }) == (0_i64)));
2929
let mut x: i32 = 5;
3030
(unsafe { destroy_2((&mut x as *mut i32)) });
31-
i32;
3231
assert!(((x) == (5)));
3332
return 0;
3433
}

0 commit comments

Comments
 (0)