summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/expectations/tests/derive-fn-ptr.rs2
-rw-r--r--tests/expectations/tests/func_ptr_in_struct.rs2
-rw-r--r--tests/headers/derive-fn-ptr.h2
-rw-r--r--tests/headers/func_ptr.h2
-rw-r--r--tests/headers/func_ptr_in_struct.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/expectations/tests/derive-fn-ptr.rs b/tests/expectations/tests/derive-fn-ptr.rs
index fca1f4e5..c98f2ec7 100644
--- a/tests/expectations/tests/derive-fn-ptr.rs
+++ b/tests/expectations/tests/derive-fn-ptr.rs
@@ -58,7 +58,7 @@ pub type my_fun2_t =
arg11: ::std::os::raw::c_int,
arg12: ::std::os::raw::c_int)>;
#[repr(C)]
-#[derive(Debug, Copy, Hash)]
+#[derive(Debug, Copy, Hash, PartialEq)]
pub struct Bar {
pub callback: my_fun2_t,
}
diff --git a/tests/expectations/tests/func_ptr_in_struct.rs b/tests/expectations/tests/func_ptr_in_struct.rs
index a855d8cf..d0e076ee 100644
--- a/tests/expectations/tests/func_ptr_in_struct.rs
+++ b/tests/expectations/tests/func_ptr_in_struct.rs
@@ -7,7 +7,7 @@
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum baz { }
#[repr(C)]
-#[derive(Debug, Copy, Hash)]
+#[derive(Debug, Copy, Hash, PartialEq)]
pub struct Foo {
pub bar: ::std::option::Option<unsafe extern "C" fn(x:
::std::os::raw::c_int,
diff --git a/tests/headers/derive-fn-ptr.h b/tests/headers/derive-fn-ptr.h
index fb89daad..2dc36f3a 100644
--- a/tests/headers/derive-fn-ptr.h
+++ b/tests/headers/derive-fn-ptr.h
@@ -1,4 +1,4 @@
-// bindgen-flags: --with-derive-hash
+// bindgen-flags: --with-derive-hash --with-derive-partialeq
//
typedef void (*my_fun_t)(int, int, int, int,
int, int, int, int,
diff --git a/tests/headers/func_ptr.h b/tests/headers/func_ptr.h
index 377c172f..bbbf677b 100644
--- a/tests/headers/func_ptr.h
+++ b/tests/headers/func_ptr.h
@@ -1,3 +1,3 @@
-// bindgen-flags: --with-derive-hash
+// bindgen-flags: --with-derive-hash --with-derive-partialeq
//
int (*foo) (int x, int y);
diff --git a/tests/headers/func_ptr_in_struct.h b/tests/headers/func_ptr_in_struct.h
index 6340e3a6..8718dd9b 100644
--- a/tests/headers/func_ptr_in_struct.h
+++ b/tests/headers/func_ptr_in_struct.h
@@ -1,4 +1,4 @@
-// bindgen-flags: --with-derive-hash
+// bindgen-flags: --with-derive-hash --with-derive-partialeq
//
enum baz;