summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/expectations/tests/complex.rs4
-rw-r--r--tests/headers/complex.h1
-rw-r--r--tests/headers/complex_global.h1
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;