diff options
author | Zhiting Zhu <zzhu@mozilla.com> | 2017-08-10 16:32:10 -0700 |
---|---|---|
committer | Zhiting Zhu <zzhu@mozilla.com> | 2017-08-14 10:19:14 -0700 |
commit | bdc197ba65e70ee5bcdfe0b2211d2ef39c486e57 (patch) | |
tree | fc00164f9ed00a2deb8242e2c844bc7963d376b9 /tests/headers | |
parent | d98535a39721a4be7a0e3d0a6171e96c52b646b1 (diff) |
Union related tests for derive PartialEq
Diffstat (limited to 'tests/headers')
-rw-r--r-- | tests/headers/union_fields.hpp | 4 | ||||
-rw-r--r-- | tests/headers/union_fields_1_0.hpp | 2 | ||||
-rw-r--r-- | tests/headers/union_template.hpp | 4 | ||||
-rw-r--r-- | tests/headers/union_template_1_0.hpp | 2 | ||||
-rw-r--r-- | tests/headers/union_with_anon_struct.h | 4 | ||||
-rw-r--r-- | tests/headers/union_with_anon_struct_1_0.h | 2 | ||||
-rw-r--r-- | tests/headers/union_with_anon_struct_bitfield.h | 4 | ||||
-rw-r--r-- | tests/headers/union_with_anon_struct_bitfield_1_0.h | 2 | ||||
-rw-r--r-- | tests/headers/union_with_anon_union.h | 4 | ||||
-rw-r--r-- | tests/headers/union_with_anon_union_1_0.h | 2 | ||||
-rw-r--r-- | tests/headers/union_with_anon_unnamed_struct.h | 4 | ||||
-rw-r--r-- | tests/headers/union_with_anon_unnamed_struct_1_0.h | 2 | ||||
-rw-r--r-- | tests/headers/union_with_anon_unnamed_union.h | 4 | ||||
-rw-r--r-- | tests/headers/union_with_anon_unnamed_union_1_0.h | 2 | ||||
-rw-r--r-- | tests/headers/union_with_big_member.h | 4 | ||||
-rw-r--r-- | tests/headers/union_with_big_member_1_0.h | 2 | ||||
-rw-r--r-- | tests/headers/union_with_nesting.h | 4 | ||||
-rw-r--r-- | tests/headers/union_with_nesting_1_0.h | 2 |
18 files changed, 27 insertions, 27 deletions
diff --git a/tests/headers/union_fields.hpp b/tests/headers/union_fields.hpp index dd15d741..7397ad58 100644 --- a/tests/headers/union_fields.hpp +++ b/tests/headers/union_fields.hpp @@ -1,5 +1,5 @@ -// bindgen-flags: --with-derive-hash - +// bindgen-flags: --with-derive-hash --with-derive-partialeq +// typedef union { int mInt; float mFloat; diff --git a/tests/headers/union_fields_1_0.hpp b/tests/headers/union_fields_1_0.hpp index 6f20900f..ef0272f0 100644 --- a/tests/headers/union_fields_1_0.hpp +++ b/tests/headers/union_fields_1_0.hpp @@ -1,4 +1,4 @@ -// bindgen-flags: --rust-target 1.0 --with-derive-hash +// bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq typedef union { int mInt; diff --git a/tests/headers/union_template.hpp b/tests/headers/union_template.hpp index c505cb72..fbebb44f 100644 --- a/tests/headers/union_template.hpp +++ b/tests/headers/union_template.hpp @@ -1,5 +1,5 @@ -// bindgen-flags: --with-derive-hash - +// bindgen-flags: --with-derive-hash --with-derive-partialeq +// template<typename T> struct NastyStruct { bool mIsSome; diff --git a/tests/headers/union_template_1_0.hpp b/tests/headers/union_template_1_0.hpp index 22e46bfa..65a11b30 100644 --- a/tests/headers/union_template_1_0.hpp +++ b/tests/headers/union_template_1_0.hpp @@ -1,4 +1,4 @@ -// bindgen-flags: --rust-target 1.0 --with-derive-hash +// bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq template<typename T> struct NastyStruct { diff --git a/tests/headers/union_with_anon_struct.h b/tests/headers/union_with_anon_struct.h index 8f15eb49..5968a48c 100644 --- a/tests/headers/union_with_anon_struct.h +++ b/tests/headers/union_with_anon_struct.h @@ -1,5 +1,5 @@ -// bindgen-flags: --with-derive-hash - +// bindgen-flags: --with-derive-hash --with-derive-partialeq +// union foo { struct { unsigned int a; diff --git a/tests/headers/union_with_anon_struct_1_0.h b/tests/headers/union_with_anon_struct_1_0.h index 8c77734e..a24f5a90 100644 --- a/tests/headers/union_with_anon_struct_1_0.h +++ b/tests/headers/union_with_anon_struct_1_0.h @@ -1,4 +1,4 @@ -// bindgen-flags: --rust-target 1.0 --with-derive-hash +// bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq union foo { struct { diff --git a/tests/headers/union_with_anon_struct_bitfield.h b/tests/headers/union_with_anon_struct_bitfield.h index d2ceac0d..8a6a6a74 100644 --- a/tests/headers/union_with_anon_struct_bitfield.h +++ b/tests/headers/union_with_anon_struct_bitfield.h @@ -1,5 +1,5 @@ -// bindgen-flags: --with-derive-hash - +// bindgen-flags: --with-derive-hash --with-derive-partialeq +// union foo { int a; struct { diff --git a/tests/headers/union_with_anon_struct_bitfield_1_0.h b/tests/headers/union_with_anon_struct_bitfield_1_0.h index f73591ec..ae069c50 100644 --- a/tests/headers/union_with_anon_struct_bitfield_1_0.h +++ b/tests/headers/union_with_anon_struct_bitfield_1_0.h @@ -1,4 +1,4 @@ -// bindgen-flags: --rust-target 1.0 --with-derive-hash +// bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq union foo { int a; diff --git a/tests/headers/union_with_anon_union.h b/tests/headers/union_with_anon_union.h index 730e17bb..8f76cbde 100644 --- a/tests/headers/union_with_anon_union.h +++ b/tests/headers/union_with_anon_union.h @@ -1,5 +1,5 @@ -// bindgen-flags: --with-derive-hash - +// bindgen-flags: --with-derive-hash --with-derive-partialeq +// union foo { union { unsigned int a; diff --git a/tests/headers/union_with_anon_union_1_0.h b/tests/headers/union_with_anon_union_1_0.h index cd6654d1..77876c08 100644 --- a/tests/headers/union_with_anon_union_1_0.h +++ b/tests/headers/union_with_anon_union_1_0.h @@ -1,4 +1,4 @@ -// bindgen-flags: --rust-target 1.0 --with-derive-hash +// bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq union foo { union { diff --git a/tests/headers/union_with_anon_unnamed_struct.h b/tests/headers/union_with_anon_unnamed_struct.h index 0d00c688..5214db4c 100644 --- a/tests/headers/union_with_anon_unnamed_struct.h +++ b/tests/headers/union_with_anon_unnamed_struct.h @@ -1,5 +1,5 @@ -// bindgen-flags: --with-derive-hash - +// bindgen-flags: --with-derive-hash --with-derive-partialeq +// union pixel { unsigned int rgba; struct { diff --git a/tests/headers/union_with_anon_unnamed_struct_1_0.h b/tests/headers/union_with_anon_unnamed_struct_1_0.h index be649c3f..a9954535 100644 --- a/tests/headers/union_with_anon_unnamed_struct_1_0.h +++ b/tests/headers/union_with_anon_unnamed_struct_1_0.h @@ -1,4 +1,4 @@ -// bindgen-flags: --rust-target 1.0 --with-derive-hash +// bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq union pixel { unsigned int rgba; diff --git a/tests/headers/union_with_anon_unnamed_union.h b/tests/headers/union_with_anon_unnamed_union.h index 163d3157..74345dd8 100644 --- a/tests/headers/union_with_anon_unnamed_union.h +++ b/tests/headers/union_with_anon_unnamed_union.h @@ -1,5 +1,5 @@ -// bindgen-flags: --with-derive-hash - +// bindgen-flags: --with-derive-hash --with-derive-partialeq +// union foo { unsigned int a; union { diff --git a/tests/headers/union_with_anon_unnamed_union_1_0.h b/tests/headers/union_with_anon_unnamed_union_1_0.h index 1d0421c9..bae55773 100644 --- a/tests/headers/union_with_anon_unnamed_union_1_0.h +++ b/tests/headers/union_with_anon_unnamed_union_1_0.h @@ -1,4 +1,4 @@ -// bindgen-flags: --rust-target 1.0 --with-derive-hash +// bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq union foo { unsigned int a; diff --git a/tests/headers/union_with_big_member.h b/tests/headers/union_with_big_member.h index 24d012da..7bff36ea 100644 --- a/tests/headers/union_with_big_member.h +++ b/tests/headers/union_with_big_member.h @@ -1,5 +1,5 @@ -// bindgen-flags: --with-derive-hash - +// bindgen-flags: --with-derive-hash --with-derive-partialeq +// union WithBigArray { int a; int b[33]; diff --git a/tests/headers/union_with_big_member_1_0.h b/tests/headers/union_with_big_member_1_0.h index 9f2dfd28..2cffd2c5 100644 --- a/tests/headers/union_with_big_member_1_0.h +++ b/tests/headers/union_with_big_member_1_0.h @@ -1,4 +1,4 @@ -// bindgen-flags: --rust-target 1.0 --with-derive-hash +// bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq union WithBigArray { int a; diff --git a/tests/headers/union_with_nesting.h b/tests/headers/union_with_nesting.h index f3135b47..95c55581 100644 --- a/tests/headers/union_with_nesting.h +++ b/tests/headers/union_with_nesting.h @@ -1,5 +1,5 @@ -// bindgen-flags: --with-derive-hash - +// bindgen-flags: --with-derive-hash --with-derive-partialeq +// union foo { unsigned int a; struct { diff --git a/tests/headers/union_with_nesting_1_0.h b/tests/headers/union_with_nesting_1_0.h index bfd59635..e89c3212 100644 --- a/tests/headers/union_with_nesting_1_0.h +++ b/tests/headers/union_with_nesting_1_0.h @@ -1,4 +1,4 @@ -// bindgen-flags: --rust-target 1.0 --with-derive-hash +// bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq union foo { unsigned int a; |