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/derive-hash-struct-with-incomplete-array.h | |
parent | 17adb13417f5d6cbd718753f0dea4371a4646c5e (diff) |
Fix mistakenly derive hash for struct that contains IncompleteArrayField
Diffstat (limited to 'tests/headers/derive-hash-struct-with-incomplete-array.h')
-rw-r--r-- | tests/headers/derive-hash-struct-with-incomplete-array.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/headers/derive-hash-struct-with-incomplete-array.h b/tests/headers/derive-hash-struct-with-incomplete-array.h new file mode 100644 index 00000000..65c009db --- /dev/null +++ b/tests/headers/derive-hash-struct-with-incomplete-array.h @@ -0,0 +1,17 @@ +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq --with-derive-partialord --with-derive-ord +// +struct test { + int a; + char zero_length_array[0]; +}; + +struct test2 { + int a; + char incomplete_array[]; +}; + +struct test3 { + int a; + char zero_length_array[0]; + char incomplete_array[]; +}; |