summaryrefslogtreecommitdiff
path: root/tests/headers/class.hpp
diff options
context:
space:
mode:
authorFlier Lu <flier.lu@gmail.com>2017-01-29 00:00:24 +0800
committerFlier Lu <flier.lu@gmail.com>2017-01-29 00:00:24 +0800
commit4eccd3cf2d6518ceed42156d76cf054a97360e58 (patch)
treeb11c01869bd3bfe745c67a4bd78eec14de1832ba /tests/headers/class.hpp
parent0958c7d46ad7e5f9eca21c3bfe5de998559cecde (diff)
more test cases for zero length array and incomplete array
Diffstat (limited to 'tests/headers/class.hpp')
-rw-r--r--tests/headers/class.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/headers/class.hpp b/tests/headers/class.hpp
index 402f8b2b..67ecb37b 100644
--- a/tests/headers/class.hpp
+++ b/tests/headers/class.hpp
@@ -2,6 +2,26 @@ class C {
int a;
// More than rust limits (32)
char big_array[33];
+};
+
+class C_with_zero_length_array {
+ int a;
+ // More than rust limits (32)
+ char big_array[33];
+ char zero_length_array[0];
+};
+
+class C_with_incomplete_array {
+ int a;
+ // More than rust limits (32)
+ char big_array[33];
+ char incomplete_array[];
+};
+
+class C_with_zero_length_array_and_incomplete_array {
+ int a;
+ // More than rust limits (32)
+ char big_array[33];
char zero_length_array[0];
char incomplete_array[];
};