| commit | b41e74c152d6debf883541a94fb9f29e71e43fec | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Sat Apr 25 15:06:18 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Sat Apr 25 18:02:18 2020 -0700 |
| tree | 129581c15910900aeafad1f4ef5d7df5d04f1c4f | |
| parent | fa85fce8534636daaa1f86c182711436945b2626 [diff] [blame] |
Test returning Vec by value from C to Rust
diff --git a/tests/ffi/lib.rs b/tests/ffi/lib.rs index 4a6ec81..0965e52 100644 --- a/tests/ffi/lib.rs +++ b/tests/ffi/lib.rs
@@ -32,6 +32,7 @@ fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared>>; fn c_return_unique_ptr_vector_opaque() -> UniquePtr<CxxVector<C>>; fn c_return_ref_vector(c: &C) -> &CxxVector<u8>; + fn c_return_rust_vec() -> Vec<u8>; fn c_take_primitive(n: usize); fn c_take_shared(shared: Shared);