diff options
author | Sergey Pepyakin <s.pepyakin@gmail.com> | 2017-09-23 01:48:19 +0300 |
---|---|---|
committer | Sergey Pepyakin <s.pepyakin@gmail.com> | 2017-10-03 00:37:09 +0300 |
commit | dde9376cf32511debbb4b0e068c6ca776d13349b (patch) | |
tree | d47244770a0fe187e7c2fec0db0366cfdbd17092 /tests/headers/derive-partialeq-pointer.hpp | |
parent | c66598d28b7ffe8b8e30a58e9268db50dd109986 (diff) |
Derive partialeq "manually" when possible
Remove derive-partialeq-template-inst test.
Add comments.
Don't implement PartialEq for incomplete arrays
Handle opaque bases and template instantiations
Extract constrain_type.
Extract `is whitelisted?` check
Add failing partialeq-anonfield
join for comps
Fix: return insert if not whitelisted
Delegate TypeRefs and alias to constrain_join.
Delegate Template instantiations to constrain_join
Add derive-partialeq-pointer.hpp test
Update comment.
Fix layout alignment larger that array limit
Add missing test for derive-partialeq-anonfield.rs
Clean
Clean
Fix typo in opaque-template-inst-member test
Remove redudant stmt
Add comment on can_supersede.
Format impl_partialeq and leave a comment
Extract requires_storage into it's own function.
Clean
Diffstat (limited to 'tests/headers/derive-partialeq-pointer.hpp')
-rw-r--r-- | tests/headers/derive-partialeq-pointer.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/headers/derive-partialeq-pointer.hpp b/tests/headers/derive-partialeq-pointer.hpp new file mode 100644 index 00000000..ce971e07 --- /dev/null +++ b/tests/headers/derive-partialeq-pointer.hpp @@ -0,0 +1,12 @@ +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq + +struct a; +class Bar { + a *b; +}; +struct c { + union {}; +}; +struct a { + c d; +}; |