diff options
author | Flier Lu <flier.lu@gmail.com> | 2017-01-29 00:00:24 +0800 |
---|---|---|
committer | Flier Lu <flier.lu@gmail.com> | 2017-01-29 00:00:24 +0800 |
commit | 4eccd3cf2d6518ceed42156d76cf054a97360e58 (patch) | |
tree | b11c01869bd3bfe745c67a4bd78eec14de1832ba /tests/headers/class.hpp | |
parent | 0958c7d46ad7e5f9eca21c3bfe5de998559cecde (diff) |
more test cases for zero length array and incomplete array
Diffstat (limited to 'tests/headers/class.hpp')
-rw-r--r-- | tests/headers/class.hpp | 20 |
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[]; }; |