summaryrefslogtreecommitdiff
path: root/libbindgen/tests
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-01-07 02:04:47 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-01-11 12:56:55 +0100
commit2ad1b52277c960ffab05573a0ff6a30a3fa1d617 (patch)
tree52d57629e2e4f4de0ca961f02b8a5fe0f379ce94 /libbindgen/tests
parentb2987eef09e10a8f941ae41906096be62f0107be (diff)
codegen: Don't make auto-opaque types without template params.
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() {