summaryrefslogtreecommitdiff
path: root/tests/expectations/tests/issue-447.rs
blob: 0582f4129e15379dd87c0d90ad95c4a01ea45ed6 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* automatically generated by rust-bindgen */


#![allow(non_snake_case)]


pub mod root {
    #[allow(unused_imports)]
    use self::super::root;
    pub mod mozilla {
        #[allow(unused_imports)]
        use self::super::super::root;
        pub mod detail {
            #[allow(unused_imports)]
            use self::super::super::super::root;
            #[repr(C)]
            #[derive(Debug, Copy)]
            pub struct GuardObjectNotifier {
                pub _address: u8,
            }
            #[test]
            fn bindgen_test_layout_GuardObjectNotifier() {
                assert_eq!(::std::mem::size_of::<GuardObjectNotifier>() ,
                           1usize , concat ! (
                           "Size of: " , stringify ! ( GuardObjectNotifier )
                           ));
                assert_eq! (::std::mem::align_of::<GuardObjectNotifier>() ,
                            1usize , concat ! (
                            "Alignment of " , stringify ! (
                            GuardObjectNotifier ) ));
            }
            impl Clone for GuardObjectNotifier {
                fn clone(&self) -> Self { *self }
            }
        }
    }
    #[repr(C)]
    #[derive(Debug, Copy)]
    pub struct JSAutoCompartment {
        pub _address: u8,
    }
    #[test]
    fn bindgen_test_layout_JSAutoCompartment() {
        assert_eq!(::std::mem::size_of::<JSAutoCompartment>() , 1usize ,
                   concat ! ( "Size of: " , stringify ! ( JSAutoCompartment )
                   ));
        assert_eq! (::std::mem::align_of::<JSAutoCompartment>() , 1usize ,
                    concat ! (
                    "Alignment of " , stringify ! ( JSAutoCompartment ) ));
    }
    extern "C" {
        #[link_name =
              "_ZN17JSAutoCompartmentC1EN7mozilla6detail19GuardObjectNotifierE"]
        pub fn JSAutoCompartment_JSAutoCompartment(this:
                                                       *mut root::JSAutoCompartment,
                                                   arg1:
                                                       root::mozilla::detail::GuardObjectNotifier);
    }
    impl Clone for JSAutoCompartment {
        fn clone(&self) -> Self { *self }
    }
    impl JSAutoCompartment {
        #[inline]
        pub unsafe fn new(arg1: root::mozilla::detail::GuardObjectNotifier)
         -> Self {
            let mut __bindgen_tmp = ::std::mem::uninitialized();
            JSAutoCompartment_JSAutoCompartment(&mut __bindgen_tmp, arg1);
            __bindgen_tmp
        }
    }
}