diff options
Diffstat (limited to 'tests/expectations/tests/constructor-tp.rs')
-rw-r--r-- | tests/expectations/tests/constructor-tp.rs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/expectations/tests/constructor-tp.rs b/tests/expectations/tests/constructor-tp.rs deleted file mode 100644 index 4b339dc3..00000000 --- a/tests/expectations/tests/constructor-tp.rs +++ /dev/null @@ -1,42 +0,0 @@ -#![allow( - dead_code, - non_snake_case, - non_camel_case_types, - non_upper_case_globals -)] - -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Foo { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Bar { - pub _address: u8, -} -#[test] -fn bindgen_test_layout_Bar() { - assert_eq!( - ::std::mem::size_of::<Bar>(), - 1usize, - concat!("Size of: ", stringify!(Bar)) - ); - assert_eq!( - ::std::mem::align_of::<Bar>(), - 1usize, - concat!("Alignment of ", stringify!(Bar)) - ); -} -extern "C" { - #[link_name = "\u{1}_ZN3BarC1Ev"] - pub fn Bar_Bar(this: *mut Bar); -} -impl Bar { - #[inline] - pub unsafe fn new() -> Self { - let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit(); - Bar_Bar(__bindgen_tmp.as_mut_ptr()); - __bindgen_tmp.assume_init() - } -} |