diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-01-24 12:29:17 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-01-24 12:32:39 +0900 |
| commit | a5bff442c1f09792ff7291652103048688c3a128 (patch) | |
| tree | d30d94201236471591b2af495f8ad41ae6a4cef5 /tests/variables.c | |
| parent | c780cbb6acd0e0526f2d305138190392bdc8cdd7 (diff) | |
| download | ducc-a5bff442c1f09792ff7291652103048688c3a128.tar.gz ducc-a5bff442c1f09792ff7291652103048688c3a128.tar.zst ducc-a5bff442c1f09792ff7291652103048688c3a128.zip | |
feat: implement array initializer
Diffstat (limited to 'tests/variables.c')
| -rw-r--r-- | tests/variables.c | 5 |
1 files changed, 5 insertions, 0 deletions
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]); } |
