diff options
author | FalseHonesty <thefalsehonesty@gmail.com> | 2021-04-13 22:08:24 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-14 13:28:48 +0200 |
commit | 2d58549296531819332e106d86dc92dfbf017ea5 (patch) | |
tree | 190f986a091d8d9e1c46df050c350dc4e946beeb /Base/home/anon | |
parent | acbb119b27c9d7c9bccc7da093c3d1ce069315a8 (diff) | |
download | serenity-2d58549296531819332e106d86dc92dfbf017ea5.zip |
LibDebug: Add support for parsing array types
This includes multi-dimensional arrays :O
Diffstat (limited to 'Base/home/anon')
-rw-r--r-- | Base/home/anon/Source/little/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Base/home/anon/Source/little/main.cpp b/Base/home/anon/Source/little/main.cpp index 9ee63e2f4c..42816ee22c 100644 --- a/Base/home/anon/Source/little/main.cpp +++ b/Base/home/anon/Source/little/main.cpp @@ -23,6 +23,8 @@ int main(int, char**) MyStruct my_struct; my_struct.status = !my_struct.status; printf("my_struct.x is %d\n", my_struct.x); + int arr[6] = { -1, 2, 20, 5, 5 }; + int other_arr[1][2] = { { 0, 2 } }; Container container; for (int i = 0; i < 3; ++i) { // This is a comment :^) |