diff options
author | Zhiting Zhu <zhitingz@cs.utexas.edu> | 2017-10-23 22:39:11 -0500 |
---|---|---|
committer | Zhiting Zhu <zhitingz@cs.utexas.edu> | 2017-10-23 22:39:11 -0500 |
commit | fa9b5e3c3fa4f81ec2b945d8b8645f538020c934 (patch) | |
tree | c74fe31df6e63799c4d552410d28bbcef4ae4e1c /tests/headers/class.hpp | |
parent | 17adb13417f5d6cbd718753f0dea4371a4646c5e (diff) |
Fix mistakenly derive hash for struct that contains IncompleteArrayField
Diffstat (limited to 'tests/headers/class.hpp')
-rw-r--r-- | tests/headers/class.hpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/headers/class.hpp b/tests/headers/class.hpp index ac2da1a4..f77ac92a 100644 --- a/tests/headers/class.hpp +++ b/tests/headers/class.hpp @@ -1,4 +1,4 @@ -// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq --with-derive-partialord --with-derive-ord // class C { int a; @@ -13,6 +13,11 @@ class C_with_zero_length_array { char zero_length_array[0]; }; +class C_with_zero_length_array_2 { + int a; + char zero_length_array[0]; +}; + class C_with_incomplete_array { int a; // More than rust limits (32) @@ -20,6 +25,11 @@ class C_with_incomplete_array { char incomplete_array[]; }; +class C_with_incomplete_array_2 { + int a; + char incomplete_array[]; +}; + class C_with_zero_length_array_and_incomplete_array { int a; // More than rust limits (32) @@ -28,6 +38,12 @@ class C_with_zero_length_array_and_incomplete_array { char incomplete_array[]; }; +class C_with_zero_length_array_and_incomplete_array_2 { + int a; + char zero_length_array[0]; + char incomplete_array[]; +}; + class WithDtor { int b; |