diff options
author | Cameron McCormack <cam@mcc.id.au> | 2016-10-22 19:39:37 +0800 |
---|---|---|
committer | Cameron McCormack <cam@mcc.id.au> | 2016-10-23 12:16:53 +0800 |
commit | 55e7d0514bf635667adfb938d2e17cd1de6531bb (patch) | |
tree | 89047ed9152d8217aba219ab475b88f9c468e80a /tests/expectations/struct_with_struct.rs | |
parent | b9030224dd83b5cb8bed580908e63c2a6c21708a (diff) |
Give vtables and anonymous items more stable generated names.
Diffstat (limited to 'tests/expectations/struct_with_struct.rs')
-rw-r--r-- | tests/expectations/struct_with_struct.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/expectations/struct_with_struct.rs b/tests/expectations/struct_with_struct.rs index 27ff4795..c8cdc927 100644 --- a/tests/expectations/struct_with_struct.rs +++ b/tests/expectations/struct_with_struct.rs @@ -7,22 +7,20 @@ #[repr(C)] #[derive(Debug, Copy)] pub struct foo { - pub bar: foo__bindgen_ty_bindgen_id_2, + pub bar: foo__bindgen_ty_1, } #[repr(C)] #[derive(Debug, Copy)] -pub struct foo__bindgen_ty_bindgen_id_2 { +pub struct foo__bindgen_ty_1 { pub x: ::std::os::raw::c_uint, pub y: ::std::os::raw::c_uint, } #[test] -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); +fn bindgen_test_layout_foo__bindgen_ty_1() { + assert_eq!(::std::mem::size_of::<foo__bindgen_ty_1>() , 8usize); + assert_eq!(::std::mem::align_of::<foo__bindgen_ty_1>() , 4usize); } -impl Clone for foo__bindgen_ty_bindgen_id_2 { +impl Clone for foo__bindgen_ty_1 { fn clone(&self) -> Self { *self } } #[test] |