Kaynağa Gözat

Added test case for invalid array constant initialisation

Taddeus Kroes 12 yıl önce
ebeveyn
işleme
9d33a6e4a5
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      test/arrays/check_error/invalid_init.cvc

+ 4 - 0
test/arrays/check_error/invalid_init.cvc

@@ -0,0 +1,4 @@
+void foo() {
+    int[3] a = [[1, 2], 3];
+    int[3] b = [[1, 2], [[3]]];
+}