Commit 484493339e30e2bb5b7f62f79871cb89e047d557

Thomas de Grivel 2023-09-19T22:55:33

add array tests

diff --git a/test/ic3/array.in b/test/ic3/array.in
index 83eddcb..4322998 100644
--- a/test/ic3/array.in
+++ b/test/ic3/array.in
@@ -76,3 +76,12 @@ d[1][1][0][0]
 d[1][1][0][1]
 d[1][1][1][0]
 d[1][1][1][1]
+e = (U8) { 1 + 1 }
+e[0]
+f = (U8) { 1 + 1, 2 + 2 }
+f[0]
+f[1]
+g = (U8) { 1 + 1, 2 + 2, 3 + 3 }
+g[0]
+g[1]
+g[2]
diff --git a/test/ic3/array.out.expected b/test/ic3/array.out.expected
index 87c3510..00b9e46 100644
--- a/test/ic3/array.out.expected
+++ b/test/ic3/array.out.expected
@@ -64,3 +64,12 @@ d[1][1][1][1]
 13
 14
 15
+(U8) {1 + 1}
+2
+(U8) {1 + 1, 2 + 2}
+2
+4
+(U8) {1 + 1, 2 + 2, 3 + 3}
+2
+4
+6