summaryrefslogtreecommitdiff
path: root/libbindgen/tests
diff options
context:
space:
mode:
Diffstat (limited to 'libbindgen/tests')
-rw-r--r--libbindgen/tests/expectations/tests/opaque_in_struct.rs2
-rw-r--r--libbindgen/tests/expectations/tests/opaque_pointer.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/libbindgen/tests/expectations/tests/opaque_in_struct.rs b/libbindgen/tests/expectations/tests/opaque_in_struct.rs
index d537f5c7..c94caa1f 100644
--- a/libbindgen/tests/expectations/tests/opaque_in_struct.rs
+++ b/libbindgen/tests/expectations/tests/opaque_in_struct.rs
@@ -21,7 +21,7 @@ impl Clone for opaque {
#[repr(C)]
#[derive(Debug, Copy)]
pub struct container {
- pub contained: u32,
+ pub contained: opaque,
}
#[test]
fn bindgen_test_layout_container() {
diff --git a/libbindgen/tests/expectations/tests/opaque_pointer.rs b/libbindgen/tests/expectations/tests/opaque_pointer.rs
index 067f55bd..118a1782 100644
--- a/libbindgen/tests/expectations/tests/opaque_pointer.rs
+++ b/libbindgen/tests/expectations/tests/opaque_pointer.rs
@@ -33,7 +33,7 @@ pub struct Opaque<T> {
pub struct WithOpaquePtr {
pub whatever: *mut Opaque<::std::os::raw::c_int>,
pub other: u32,
- pub t: u32,
+ pub t: OtherOpaque,
}
#[test]
fn bindgen_test_layout_WithOpaquePtr() {