summaryrefslogtreecommitdiff
path: root/tests/expectations/size_t_template.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expectations/size_t_template.rs')
-rw-r--r--tests/expectations/size_t_template.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/expectations/size_t_template.rs b/tests/expectations/size_t_template.rs
index 6f249ae5..78351ecc 100644
--- a/tests/expectations/size_t_template.rs
+++ b/tests/expectations/size_t_template.rs
@@ -5,12 +5,15 @@
#[repr(C)]
-#[derive(Debug)]
-pub struct Struct_C {
+#[derive(Debug, Copy)]
+pub struct C {
pub arr: [u32; 3usize],
}
#[test]
-fn bindgen_test_layout_Struct_C() {
- assert_eq!(::std::mem::size_of::<Struct_C>() , 12usize);
- assert_eq!(::std::mem::align_of::<Struct_C>() , 4usize);
+fn bindgen_test_layout_C() {
+ assert_eq!(::std::mem::size_of::<C>() , 12usize);
+ assert_eq!(::std::mem::align_of::<C>() , 4usize);
+}
+impl Clone for C {
+ fn clone(&self) -> Self { *self }
}