diff options
Diffstat (limited to 'bindgen-tests/tests/expectations/tests/allowlist-namespaces-basic.rs')
-rw-r--r-- | bindgen-tests/tests/expectations/tests/allowlist-namespaces-basic.rs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/bindgen-tests/tests/expectations/tests/allowlist-namespaces-basic.rs b/bindgen-tests/tests/expectations/tests/allowlist-namespaces-basic.rs new file mode 100644 index 00000000..36d03fef --- /dev/null +++ b/bindgen-tests/tests/expectations/tests/allowlist-namespaces-basic.rs @@ -0,0 +1,38 @@ +#![allow( + dead_code, + non_snake_case, + non_camel_case_types, + non_upper_case_globals +)] + +#[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] +pub mod root { + #[allow(unused_imports)] + use self::super::root; + pub mod outer { + #[allow(unused_imports)] + use self::super::super::root; + pub mod inner { + #[allow(unused_imports)] + use self::super::super::super::root; + #[repr(C)] + #[derive(Debug, Default, Copy, Clone)] + pub struct Helper { + pub _address: u8, + } + #[test] + fn bindgen_test_layout_Helper() { + assert_eq!( + ::std::mem::size_of::<Helper>(), + 1usize, + concat!("Size of: ", stringify!(Helper)) + ); + assert_eq!( + ::std::mem::align_of::<Helper>(), + 1usize, + concat!("Alignment of ", stringify!(Helper)) + ); + } + } + } +} |