diff options
author | Flier Lu <flier.lu@gmail.com> | 2017-01-28 22:12:42 +0800 |
---|---|---|
committer | Flier Lu <flier.lu@gmail.com> | 2017-01-28 22:12:42 +0800 |
commit | a00e8b03da825e13a809234abcace81d6cf59335 (patch) | |
tree | e7f0f13f33007929fd9e8bbd5653d896981ba640 /tests/headers/class.hpp | |
parent | 7d995d75e07798c1527d5ea3dd8a647ed79fe209 (diff) |
treat incomplete array as zero length array
fix issue #455
Diffstat (limited to 'tests/headers/class.hpp')
-rw-r--r-- | tests/headers/class.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/headers/class.hpp b/tests/headers/class.hpp index e753f186..402f8b2b 100644 --- a/tests/headers/class.hpp +++ b/tests/headers/class.hpp @@ -2,6 +2,8 @@ class C { int a; // More than rust limits (32) char big_array[33]; + char zero_length_array[0]; + char incomplete_array[]; }; class WithDtor { |