From a5bff442c1f09792ff7291652103048688c3a128 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 24 Jan 2026 12:29:17 +0900 Subject: feat: implement array initializer --- tests/variables.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/variables.c') diff --git a/tests/variables.c b/tests/variables.c index 0bd2127..228a625 100644 --- a/tests/variables.c +++ b/tests/variables.c @@ -71,4 +71,9 @@ int main() { ASSERT_EQ(2, d); ASSERT_EQ(2, e); ASSERT_EQ(4, f); + + int arr[3] = {10, 20, 30}; + ASSERT_EQ(10, arr[0]); + ASSERT_EQ(20, arr[1]); + ASSERT_EQ(30, arr[2]); } -- cgit v1.3-1-g0d28