diff options
author | Zhiting Zhu <zhitingz@cs.utexas.edu> | 2017-08-16 21:14:09 -0500 |
---|---|---|
committer | Zhiting Zhu <zhitingz@cs.utexas.edu> | 2017-08-21 16:14:41 -0500 |
commit | 096bc876fcc57177c0c18cfca7321f45e5544b25 (patch) | |
tree | ef56b8d894946551aaec3ee93e23a504640998dd | |
parent | a3a00f2b89745d5fecdf738debf39a60893f5089 (diff) |
Complex float related tests for derive Eq
-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; |