diff options
Diffstat (limited to 'libbindgen/tests/expectations/tests/vector.rs')
-rw-r--r-- | libbindgen/tests/expectations/tests/vector.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libbindgen/tests/expectations/tests/vector.rs b/libbindgen/tests/expectations/tests/vector.rs new file mode 100644 index 00000000..b8ca5735 --- /dev/null +++ b/libbindgen/tests/expectations/tests/vector.rs @@ -0,0 +1,19 @@ +/* automatically generated by rust-bindgen */ + + +#![allow(non_snake_case)] + + +#[repr(C)] +#[derive(Debug, Copy)] +pub struct foo { + pub mMember: [::std::os::raw::c_longlong; 1usize], +} +#[test] +fn bindgen_test_layout_foo() { + assert_eq!(::std::mem::size_of::<foo>() , 8usize); + assert_eq!(::std::mem::align_of::<foo>() , 8usize); +} +impl Clone for foo { + fn clone(&self) -> Self { *self } +} |