summaryrefslogtreecommitdiff
path: root/tests/expectations/tests/vtable_recursive_sig.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expectations/tests/vtable_recursive_sig.rs')
-rw-r--r--tests/expectations/tests/vtable_recursive_sig.rs35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/expectations/tests/vtable_recursive_sig.rs b/tests/expectations/tests/vtable_recursive_sig.rs
new file mode 100644
index 00000000..ce62eeb0
--- /dev/null
+++ b/tests/expectations/tests/vtable_recursive_sig.rs
@@ -0,0 +1,35 @@
+/* automatically generated by rust-bindgen */
+
+
+#![allow(non_snake_case)]
+
+
+#[repr(C)]
+#[derive(Debug, Copy)]
+pub struct Derived {
+ pub _base: Base,
+}
+#[test]
+fn bindgen_test_layout_Derived() {
+ assert_eq!(::std::mem::size_of::<Derived>() , 8usize);
+ assert_eq!(::std::mem::align_of::<Derived>() , 8usize);
+}
+impl Clone for Derived {
+ fn clone(&self) -> Self { *self }
+}
+#[repr(C)]
+pub struct Base__bindgen_vtable {
+}
+#[repr(C)]
+#[derive(Debug, Copy)]
+pub struct Base {
+ pub vtable_: *const Base__bindgen_vtable,
+}
+#[test]
+fn bindgen_test_layout_Base() {
+ assert_eq!(::std::mem::size_of::<Base>() , 8usize);
+ assert_eq!(::std::mem::align_of::<Base>() , 8usize);
+}
+impl Clone for Base {
+ fn clone(&self) -> Self { *self }
+}