summaryrefslogtreecommitdiff
path: root/tests/expectations/tests/replace_use.rs
blob: 3998d5b38e0184451edd4bf4616b65db02f48765 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* automatically generated by rust-bindgen */


#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)]


/// <div rustbindgen replaces="nsTArray"></div>
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct nsTArray {
    pub y: ::std::os::raw::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Test {
    pub a: nsTArray,
}
#[test]
fn bindgen_test_layout_Test() {
    assert_eq!(::std::mem::size_of::<Test>() , 4usize , concat ! (
               "Size of: " , stringify ! ( Test ) ));
    assert_eq! (::std::mem::align_of::<Test>() , 4usize , concat ! (
                "Alignment of " , stringify ! ( Test ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const Test ) ) . a as * const _ as usize } ,
                0usize , concat ! (
                "Alignment of field: " , stringify ! ( Test ) , "::" ,
                stringify ! ( a ) ));
}
impl Clone for Test {
    fn clone(&self) -> Self { *self }
}
impl Default for Test {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[test]
fn __bindgen_test_layout_nsTArray_open0_long_close0_instantiation() {
    assert_eq!(::std::mem::size_of::<nsTArray>() , 4usize , concat ! (
               "Size of template specialization: " , stringify ! ( nsTArray )
               ));
    assert_eq!(::std::mem::align_of::<nsTArray>() , 4usize , concat ! (
               "Alignment of template specialization: " , stringify ! (
               nsTArray ) ));
}