diff options
Diffstat (limited to 'tests/expectations/tests/class_with_dtor.rs')
-rw-r--r-- | tests/expectations/tests/class_with_dtor.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/expectations/tests/class_with_dtor.rs b/tests/expectations/tests/class_with_dtor.rs new file mode 100644 index 00000000..8fa0951f --- /dev/null +++ b/tests/expectations/tests/class_with_dtor.rs @@ -0,0 +1,29 @@ +/* automatically generated by rust-bindgen */ + + +#![allow(non_snake_case)] + + +#[repr(C)] +#[derive(Debug)] +pub struct HandleWithDtor<T> { + pub ptr: *mut T, +} +pub type HandleValue = HandleWithDtor<::std::os::raw::c_int>; +#[repr(C)] +#[derive(Debug)] +pub struct WithoutDtor { + pub shouldBeWithDtor: HandleValue, +} +#[test] +fn bindgen_test_layout_WithoutDtor() { + assert_eq!(::std::mem::size_of::<WithoutDtor>() , 8usize); + assert_eq!(::std::mem::align_of::<WithoutDtor>() , 8usize); +} +#[test] +fn __bindgen_test_layout_template_1() { + assert_eq!(::std::mem::size_of::<HandleWithDtor<::std::os::raw::c_int>>() + , 8usize); + assert_eq!(::std::mem::align_of::<HandleWithDtor<::std::os::raw::c_int>>() + , 8usize); +} |