From bd14b1feca39807284c190f7cbfe2528c8a7fcdc Mon Sep 17 00:00:00 2001 From: QFSW Date: Tue, 26 Mar 2019 15:55:30 +0000 Subject: [PATCH] Fixed one of the tests --- test/compiler/tests/sizeof/var/sizeof_array_element.c | 2 +- test/parser/testProgram.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/compiler/tests/sizeof/var/sizeof_array_element.c b/test/compiler/tests/sizeof/var/sizeof_array_element.c index 714fca3..1b63193 100644 --- a/test/compiler/tests/sizeof/var/sizeof_array_element.c +++ b/test/compiler/tests/sizeof/var/sizeof_array_element.c @@ -1,4 +1,4 @@ -int sizeof_array_local() +int sizeof_array_element() { int x[5]; return sizeof(x[3]); diff --git a/test/parser/testProgram.c b/test/parser/testProgram.c index 82abcb1..714fca3 100644 --- a/test/parser/testProgram.c +++ b/test/parser/testProgram.c @@ -1,4 +1,5 @@ -int sizeof_long() +int sizeof_array_local() { - return sizeof(int**); + int x[5]; + return sizeof(x[3]); } \ No newline at end of file