summaryrefslogtreecommitdiff
path: root/tests/expectations/struct_with_anon_struct_array.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expectations/struct_with_anon_struct_array.rs')
-rw-r--r--tests/expectations/struct_with_anon_struct_array.rs52
1 files changed, 25 insertions, 27 deletions
diff --git a/tests/expectations/struct_with_anon_struct_array.rs b/tests/expectations/struct_with_anon_struct_array.rs
index 19a16cd6..48cc71d2 100644
--- a/tests/expectations/struct_with_anon_struct_array.rs
+++ b/tests/expectations/struct_with_anon_struct_array.rs
@@ -6,49 +6,47 @@
#[repr(C)]
#[derive(Debug, Copy)]
-pub struct Struct_foo {
- pub bar: [Struct_foo_struct_with_anon_struct_array_h_unnamed_1; 2usize],
- pub baz: [[[Struct_foo_struct_with_anon_struct_array_h_unnamed_2; 4usize]; 3usize]; 2usize],
+pub struct foo {
+ pub bar: [foo__bindgen_ty_bindgen_id_2; 2usize],
+ pub baz: [[[foo__bindgen_ty_bindgen_id_6; 4usize]; 3usize]; 2usize],
}
#[repr(C)]
#[derive(Debug, Copy)]
-pub struct Struct_foo_struct_with_anon_struct_array_h_unnamed_1 {
+pub struct foo__bindgen_ty_bindgen_id_2 {
pub a: ::std::os::raw::c_int,
pub b: ::std::os::raw::c_int,
}
-impl ::std::clone::Clone for
- Struct_foo_struct_with_anon_struct_array_h_unnamed_1 {
- fn clone(&self) -> Self { *self }
-}
#[test]
-fn bindgen_test_layout_Struct_foo_struct_with_anon_struct_array_h_unnamed_1() {
- assert_eq!(::std::mem::size_of::<Struct_foo_struct_with_anon_struct_array_h_unnamed_1>()
- , 8usize);
- assert_eq!(::std::mem::align_of::<Struct_foo_struct_with_anon_struct_array_h_unnamed_1>()
- , 4usize);
+fn bindgen_test_layout_foo__bindgen_ty_bindgen_id_2() {
+ assert_eq!(::std::mem::size_of::<foo__bindgen_ty_bindgen_id_2>() ,
+ 8usize);
+ assert_eq!(::std::mem::align_of::<foo__bindgen_ty_bindgen_id_2>() ,
+ 4usize);
+}
+impl Clone for foo__bindgen_ty_bindgen_id_2 {
+ fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
-pub struct Struct_foo_struct_with_anon_struct_array_h_unnamed_2 {
+pub struct foo__bindgen_ty_bindgen_id_6 {
pub a: ::std::os::raw::c_int,
pub b: ::std::os::raw::c_int,
}
-impl ::std::clone::Clone for
- Struct_foo_struct_with_anon_struct_array_h_unnamed_2 {
- fn clone(&self) -> Self { *self }
-}
#[test]
-fn bindgen_test_layout_Struct_foo_struct_with_anon_struct_array_h_unnamed_2() {
- assert_eq!(::std::mem::size_of::<Struct_foo_struct_with_anon_struct_array_h_unnamed_2>()
- , 8usize);
- assert_eq!(::std::mem::align_of::<Struct_foo_struct_with_anon_struct_array_h_unnamed_2>()
- , 4usize);
+fn bindgen_test_layout_foo__bindgen_ty_bindgen_id_6() {
+ assert_eq!(::std::mem::size_of::<foo__bindgen_ty_bindgen_id_6>() ,
+ 8usize);
+ assert_eq!(::std::mem::align_of::<foo__bindgen_ty_bindgen_id_6>() ,
+ 4usize);
}
-impl ::std::clone::Clone for Struct_foo {
+impl Clone for foo__bindgen_ty_bindgen_id_6 {
fn clone(&self) -> Self { *self }
}
#[test]
-fn bindgen_test_layout_Struct_foo() {
- assert_eq!(::std::mem::size_of::<Struct_foo>() , 208usize);
- assert_eq!(::std::mem::align_of::<Struct_foo>() , 4usize);
+fn bindgen_test_layout_foo() {
+ assert_eq!(::std::mem::size_of::<foo>() , 208usize);
+ assert_eq!(::std::mem::align_of::<foo>() , 4usize);
+}
+impl Clone for foo {
+ fn clone(&self) -> Self { *self }
}