diff options
author | Zhiting Zhu <zzhu@mozilla.com> | 2017-08-10 16:55:19 -0700 |
---|---|---|
committer | Zhiting Zhu <zzhu@mozilla.com> | 2017-08-14 10:19:14 -0700 |
commit | 6560ed24e0780640e25d2a43be57891f9709f2cf (patch) | |
tree | ec38c4a8a6e566d8b63da1328761365437d69076 /tests | |
parent | 802e2ad08cb20811671f6eb9757f9956bf172da6 (diff) |
Function related tests for derive PartialEq
Diffstat (limited to 'tests')
-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 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; |