mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2025-02-16 22:47:45 +00:00
Test return value of vec return functions
This commit is contained in:
parent
b122cff91d
commit
f142a6e330
@ -71,6 +71,8 @@ fn test_c_return() {
|
||||
.map(|o| o.z)
|
||||
.sum(),
|
||||
);
|
||||
assert_eq!(b"\x02\0\x02\0"[..], ffi::c_return_rust_vec_u8());
|
||||
assert_eq!([true, true, false][..], ffi::c_return_rust_vec_bool());
|
||||
assert_eq!(2020, ffi::c_return_identity(2020));
|
||||
assert_eq!(2021, ffi::c_return_sum(2020, 1));
|
||||
match ffi::c_return_enum(0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user