diff options
-rw-r--r-- | tests/expectations/tests/complex.rs | 4 | ||||
-rw-r--r-- | tests/headers/complex.h | 2 | ||||
-rw-r--r-- | tests/headers/complex_global.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/expectations/tests/complex.rs b/tests/expectations/tests/complex.rs index 805733c7..6159f979 100644 --- a/tests/expectations/tests/complex.rs +++ b/tests/expectations/tests/complex.rs @@ -31,7 +31,7 @@ impl Clone for TestDouble { fn clone(&self) -> Self { *self } } #[repr(C)] -#[derive(Debug, Copy, Hash, PartialEq)] +#[derive(Debug, Copy, Hash, PartialEq, Eq)] pub struct TestDoublePtr { pub mMember: *mut __BindgenComplex<f64>, } @@ -74,7 +74,7 @@ impl Clone for TestFloat { fn clone(&self) -> Self { *self } } #[repr(C)] -#[derive(Debug, Copy, Hash, PartialEq)] +#[derive(Debug, Copy, Hash, PartialEq, Eq)] pub struct TestFloatPtr { pub mMember: *mut __BindgenComplex<f32>, } diff --git a/tests/headers/complex.h b/tests/headers/complex.h index d0fb05b4..2996be1f 100644 --- a/tests/headers/complex.h +++ b/tests/headers/complex.h @@ -1,4 +1,4 @@ -// bindgen-flags: --with-derive-hash --with-derive-partialeq +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq #define COMPLEX_TEST(ty_, name_) \ struct Test##name_ { \ diff --git a/tests/headers/complex_global.h b/tests/headers/complex_global.h index 6ceb62da..6b9ffa53 100644 --- a/tests/headers/complex_global.h +++ b/tests/headers/complex_global.h @@ -1,4 +1,4 @@ -// bindgen-flags: --with-derive-hash --with-derive-partialeq +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq float _Complex globalValueFloat; double _Complex globalValueDouble; long double _Complex globalValueLongDouble; |