|
4 | 4 | #![allow(non_snake_case)]
|
5 | 5 |
|
6 | 6 |
|
| 7 | +#[derive(PartialEq, Copy, Clone, Hash, Debug, Default)] |
| 8 | +#[repr(C)] |
| 9 | +pub struct __BindgenComplex<T> { |
| 10 | + pub re: T, |
| 11 | + pub im: T, |
| 12 | +} |
7 | 13 | #[repr(C)]
|
8 | 14 | #[derive(Debug, Copy)]
|
9 |
| -pub struct Testdouble { |
10 |
| - pub mMember: [f64; 2usize], |
| 15 | +pub struct TestDouble { |
| 16 | + pub mMember: __BindgenComplex<f64>, |
11 | 17 | }
|
12 | 18 | #[test]
|
13 |
| -fn bindgen_test_layout_Testdouble() { |
14 |
| - assert_eq!(::std::mem::size_of::<Testdouble>() , 16usize); |
15 |
| - assert_eq!(::std::mem::align_of::<Testdouble>() , 8usize); |
| 19 | +fn bindgen_test_layout_TestDouble() { |
| 20 | + assert_eq!(::std::mem::size_of::<TestDouble>() , 16usize); |
| 21 | + assert_eq!(::std::mem::align_of::<TestDouble>() , 8usize); |
16 | 22 | }
|
17 |
| -impl Clone for Testdouble { |
| 23 | +impl Clone for TestDouble { |
18 | 24 | fn clone(&self) -> Self { *self }
|
19 | 25 | }
|
20 | 26 | #[repr(C)]
|
21 | 27 | #[derive(Debug, Copy)]
|
22 |
| -pub struct TestdoublePtr { |
23 |
| - pub mMember: *mut [f64; 2usize], |
| 28 | +pub struct TestDoublePtr { |
| 29 | + pub mMember: *mut __BindgenComplex<f64>, |
24 | 30 | }
|
25 | 31 | #[test]
|
26 |
| -fn bindgen_test_layout_TestdoublePtr() { |
27 |
| - assert_eq!(::std::mem::size_of::<TestdoublePtr>() , 8usize); |
28 |
| - assert_eq!(::std::mem::align_of::<TestdoublePtr>() , 8usize); |
| 32 | +fn bindgen_test_layout_TestDoublePtr() { |
| 33 | + assert_eq!(::std::mem::size_of::<TestDoublePtr>() , 8usize); |
| 34 | + assert_eq!(::std::mem::align_of::<TestDoublePtr>() , 8usize); |
29 | 35 | }
|
30 |
| -impl Clone for TestdoublePtr { |
| 36 | +impl Clone for TestDoublePtr { |
31 | 37 | fn clone(&self) -> Self { *self }
|
32 | 38 | }
|
33 | 39 | #[repr(C)]
|
34 | 40 | #[derive(Debug, Copy)]
|
35 |
| -pub struct Testfloat { |
36 |
| - pub mMember: [f32; 2usize], |
| 41 | +pub struct TestFloat { |
| 42 | + pub mMember: __BindgenComplex<f32>, |
37 | 43 | }
|
38 | 44 | #[test]
|
39 |
| -fn bindgen_test_layout_Testfloat() { |
40 |
| - assert_eq!(::std::mem::size_of::<Testfloat>() , 8usize); |
41 |
| - assert_eq!(::std::mem::align_of::<Testfloat>() , 4usize); |
| 45 | +fn bindgen_test_layout_TestFloat() { |
| 46 | + assert_eq!(::std::mem::size_of::<TestFloat>() , 8usize); |
| 47 | + assert_eq!(::std::mem::align_of::<TestFloat>() , 4usize); |
42 | 48 | }
|
43 |
| -impl Clone for Testfloat { |
| 49 | +impl Clone for TestFloat { |
44 | 50 | fn clone(&self) -> Self { *self }
|
45 | 51 | }
|
46 | 52 | #[repr(C)]
|
47 | 53 | #[derive(Debug, Copy)]
|
48 |
| -pub struct TestfloatPtr { |
49 |
| - pub mMember: *mut [f32; 2usize], |
| 54 | +pub struct TestFloatPtr { |
| 55 | + pub mMember: *mut __BindgenComplex<f32>, |
50 | 56 | }
|
51 | 57 | #[test]
|
52 |
| -fn bindgen_test_layout_TestfloatPtr() { |
53 |
| - assert_eq!(::std::mem::size_of::<TestfloatPtr>() , 8usize); |
54 |
| - assert_eq!(::std::mem::align_of::<TestfloatPtr>() , 8usize); |
| 58 | +fn bindgen_test_layout_TestFloatPtr() { |
| 59 | + assert_eq!(::std::mem::size_of::<TestFloatPtr>() , 8usize); |
| 60 | + assert_eq!(::std::mem::align_of::<TestFloatPtr>() , 8usize); |
55 | 61 | }
|
56 |
| -impl Clone for TestfloatPtr { |
| 62 | +impl Clone for TestFloatPtr { |
57 | 63 | fn clone(&self) -> Self { *self }
|
58 | 64 | }
|
59 | 65 | #[repr(C)]
|
60 | 66 | #[derive(Debug, Copy)]
|
61 |
| -pub struct Testint { |
62 |
| - pub mMember: [::std::os::raw::c_int; 2usize], |
| 67 | +pub struct TestLongDouble { |
| 68 | + pub mMember: __BindgenComplex<f64>, |
63 | 69 | }
|
64 | 70 | #[test]
|
65 |
| -fn bindgen_test_layout_Testint() { |
66 |
| - assert_eq!(::std::mem::size_of::<Testint>() , 8usize); |
67 |
| - assert_eq!(::std::mem::align_of::<Testint>() , 4usize); |
| 71 | +fn bindgen_test_layout_TestLongDouble() { |
| 72 | + assert_eq!(::std::mem::size_of::<TestLongDouble>() , 32usize); |
| 73 | + assert_eq!(::std::mem::align_of::<TestLongDouble>() , 16usize); |
68 | 74 | }
|
69 |
| -impl Clone for Testint { |
| 75 | +impl Clone for TestLongDouble { |
70 | 76 | fn clone(&self) -> Self { *self }
|
71 | 77 | }
|
72 | 78 | #[repr(C)]
|
73 | 79 | #[derive(Debug, Copy)]
|
74 |
| -pub struct TestintPtr { |
75 |
| - pub mMember: *mut [::std::os::raw::c_int; 2usize], |
| 80 | +pub struct TestLongDoublePtr { |
| 81 | + pub mMember: *mut __BindgenComplex<f64>, |
76 | 82 | }
|
77 | 83 | #[test]
|
78 |
| -fn bindgen_test_layout_TestintPtr() { |
79 |
| - assert_eq!(::std::mem::size_of::<TestintPtr>() , 8usize); |
80 |
| - assert_eq!(::std::mem::align_of::<TestintPtr>() , 8usize); |
| 84 | +fn bindgen_test_layout_TestLongDoublePtr() { |
| 85 | + assert_eq!(::std::mem::size_of::<TestLongDoublePtr>() , 8usize); |
| 86 | + assert_eq!(::std::mem::align_of::<TestLongDoublePtr>() , 8usize); |
81 | 87 | }
|
82 |
| -impl Clone for TestintPtr { |
| 88 | +impl Clone for TestLongDoublePtr { |
83 | 89 | fn clone(&self) -> Self { *self }
|
84 | 90 | }
|
0 commit comments