summaryrefslogtreecommitdiff
path: root/tests/headers/class.hpp
diff options
context:
space:
mode:
authorFlier Lu <flier.lu@gmail.com>2017-01-28 22:12:42 +0800
committerFlier Lu <flier.lu@gmail.com>2017-01-28 22:12:42 +0800
commita00e8b03da825e13a809234abcace81d6cf59335 (patch)
treee7f0f13f33007929fd9e8bbd5653d896981ba640 /tests/headers/class.hpp
parent7d995d75e07798c1527d5ea3dd8a647ed79fe209 (diff)
treat incomplete array as zero length array
fix issue #455
Diffstat (limited to 'tests/headers/class.hpp')
-rw-r--r--tests/headers/class.hpp2
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 {