diff options
author | Zhiting Zhu <zhitingz@cs.utexas.edu> | 2017-08-16 21:12:51 -0500 |
---|---|---|
committer | Zhiting Zhu <zhitingz@cs.utexas.edu> | 2017-08-21 16:14:41 -0500 |
commit | a3a00f2b89745d5fecdf738debf39a60893f5089 (patch) | |
tree | d1aaa89faf034dec0fb4e8a1d0e634300fdf2ea0 | |
parent | 11511cc0be53db91d495a5924f2631215db80158 (diff) |
Function related tests for derive Eq
-rw-r--r-- | tests/expectations/tests/derive-fn-ptr.rs | 2 | ||||
-rw-r--r-- | tests/expectations/tests/func_ptr_in_struct.rs | 2 | ||||
-rw-r--r-- | tests/headers/derive-fn-ptr.h | 2 | ||||
-rw-r--r-- | tests/headers/func_ptr.h | 2 | ||||
-rw-r--r-- | tests/headers/func_ptr_in_struct.h | 2 |
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 c98f2ec7..ac479296 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, PartialEq)] +#[derive(Debug, Copy, Hash, PartialEq, Eq)] 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 d0e076ee..e3d1abff 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, PartialEq)] +#[derive(Debug, Copy, Hash, PartialEq, Eq)] 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 2dc36f3a..93b980e6 100644 --- a/tests/headers/derive-fn-ptr.h +++ b/tests/headers/derive-fn-ptr.h @@ -1,4 +1,4 @@ -// bindgen-flags: --with-derive-hash --with-derive-partialeq +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq // 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 bbbf677b..34dc48d1 100644 --- a/tests/headers/func_ptr.h +++ b/tests/headers/func_ptr.h @@ -1,3 +1,3 @@ -// bindgen-flags: --with-derive-hash --with-derive-partialeq +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq // 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 8718dd9b..24e1f44f 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 --with-derive-partialeq +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq // enum baz; |