summaryrefslogtreecommitdiff
path: root/tests/expectations/annotation_hide.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expectations/annotation_hide.rs')
-rw-r--r--tests/expectations/annotation_hide.rs22
1 files changed, 14 insertions, 8 deletions
diff --git a/tests/expectations/annotation_hide.rs b/tests/expectations/annotation_hide.rs
index 14ba8310..dcaf7997 100644
--- a/tests/expectations/annotation_hide.rs
+++ b/tests/expectations/annotation_hide.rs
@@ -4,8 +4,11 @@
#![allow(non_snake_case)]
-pub enum Struct_C { }
+/**
+ * <div rustbindgen opaque></div>
+ */
#[repr(C)]
+#[derive(Debug, Copy)]
pub struct D {
pub _bindgen_opaque_blob: u32,
}
@@ -14,16 +17,19 @@ fn bindgen_test_layout_D() {
assert_eq!(::std::mem::size_of::<D>() , 4usize);
assert_eq!(::std::mem::align_of::<D>() , 4usize);
}
+impl Clone for D {
+ fn clone(&self) -> Self { *self }
+}
#[repr(C)]
#[derive(Debug, Copy)]
-pub struct Struct_NotAnnotated {
+pub struct NotAnnotated {
pub f: ::std::os::raw::c_int,
}
-impl ::std::clone::Clone for Struct_NotAnnotated {
- fn clone(&self) -> Self { *self }
-}
#[test]
-fn bindgen_test_layout_Struct_NotAnnotated() {
- assert_eq!(::std::mem::size_of::<Struct_NotAnnotated>() , 4usize);
- assert_eq!(::std::mem::align_of::<Struct_NotAnnotated>() , 4usize);
+fn bindgen_test_layout_NotAnnotated() {
+ assert_eq!(::std::mem::size_of::<NotAnnotated>() , 4usize);
+ assert_eq!(::std::mem::align_of::<NotAnnotated>() , 4usize);
+}
+impl Clone for NotAnnotated {
+ fn clone(&self) -> Self { *self }
}