diff options
author | Sergey Pepyakin <s.pepyakin@gmail.com> | 2017-10-05 11:02:26 +0300 |
---|---|---|
committer | Sergey Pepyakin <s.pepyakin@gmail.com> | 2017-10-05 18:04:24 +0300 |
commit | a1c6802bee7b687ae64e90acc4dc8d4b03ffe3ab (patch) | |
tree | fe6d10a6c8dc518202021624879d8a37ec417a40 /tests/headers/derive-bitfield-method-same-name.hpp | |
parent | af967d701a6a693d201793a875a6c1b720e489f0 (diff) |
Use bitfield getter_name in impl_debug.
Also make impl_partialeq test to also cover impl_debug case.
Diffstat (limited to 'tests/headers/derive-bitfield-method-same-name.hpp')
-rw-r--r-- | tests/headers/derive-bitfield-method-same-name.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/headers/derive-bitfield-method-same-name.hpp b/tests/headers/derive-bitfield-method-same-name.hpp new file mode 100644 index 00000000..4b7b21e9 --- /dev/null +++ b/tests/headers/derive-bitfield-method-same-name.hpp @@ -0,0 +1,13 @@ +// bindgen-flags: --with-derive-partialeq --impl-partialeq --impl-debug + +/// Because this struct have array larger than 32 items +/// and --with-derive-partialeq --impl-partialeq --impl-debug is provided, +/// this struct should manually implement `Debug` and `PartialEq`. +struct Foo { + int large[33]; + char type_ : 3; + unsigned : 8; + char type(); + void set_type_(char c); + void set_type(char c); +}; |