]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add "unsupported use of length field" test to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 21 Sep 2018 13:03:42 +0000 (15:03 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 21 Sep 2018 13:03:42 +0000 (15:03 +0200)
tests/Makefile.am
tests/basic-types/bug604589.test [new file with mode: 0644]

index 1b81626384e0f5dc6e0a63e1c3964eff635f227d..57177c33fbafb92fd453a6e5e435bbfeb7aab044 100644 (file)
@@ -36,6 +36,7 @@ TESTS = \
        basic-types/bug596637.vala \
        basic-types/bug596785.vala \
        basic-types/bug604371.vala \
+       basic-types/bug604589.test \
        basic-types/bug622178.vala \
        basic-types/bug632322.vala \
        basic-types/bug643612.vala \
diff --git a/tests/basic-types/bug604589.test b/tests/basic-types/bug604589.test
new file mode 100644 (file)
index 0000000..75a0b17
--- /dev/null
@@ -0,0 +1,6 @@
+Invalid Code
+
+void main () {
+    int[,] foo = {{1}};
+    var bar = foo.length.length;
+}