diff options
author | Zhiting Zhu <zzhu@mozilla.com> | 2017-08-04 15:18:42 -0700 |
---|---|---|
committer | Zhiting Zhu <zzhu@mozilla.com> | 2017-08-09 15:19:00 -0700 |
commit | db6a3fb3a5fe14172926a7a486244f5ef5e65d8a (patch) | |
tree | d4716a7ac242a9333b3b1fbaf81ba03d5cf6e890 | |
parent | 8d209f327432159cc2253068812073f594124d36 (diff) |
Complex float tests for derive Hash
-rw-r--r-- | tests/expectations/tests/complex.rs | 4 | ||||
-rw-r--r-- | tests/headers/complex.h | 1 | ||||
-rw-r--r-- | tests/headers/complex_global.h | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/tests/expectations/tests/complex.rs b/tests/expectations/tests/complex.rs index 22eb92b8..08d5d453 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)] +#[derive(Debug, Copy, Hash)] 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)] +#[derive(Debug, Copy, Hash)] pub struct TestFloatPtr { pub mMember: *mut __BindgenComplex<f32>, } diff --git a/tests/headers/complex.h b/tests/headers/complex.h index 04877a4e..9696b606 100644 --- a/tests/headers/complex.h +++ b/tests/headers/complex.h @@ -1,3 +1,4 @@ +// bindgen-flags: --with-derive-hash #define COMPLEX_TEST(ty_, name_) \ struct Test##name_ { \ diff --git a/tests/headers/complex_global.h b/tests/headers/complex_global.h index d9f9fb01..7b9e8872 100644 --- a/tests/headers/complex_global.h +++ b/tests/headers/complex_global.h @@ -1,3 +1,4 @@ +// bindgen-flags: --with-derive-hash float _Complex globalValueFloat; double _Complex globalValueDouble; long double _Complex globalValueLongDouble; |