From: Rico Tzschichholz Date: Fri, 21 Sep 2018 13:03:42 +0000 (+0200) Subject: tests: Add "unsupported use of length field" test to increase coverage X-Git-Tag: 0.43.1~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ecb47f50b2cb8bcee8aee27137a53b4ad7884f6;p=thirdparty%2Fvala.git tests: Add "unsupported use of length field" test to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 1b8162638..57177c33f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 index 000000000..75a0b17f6 --- /dev/null +++ b/tests/basic-types/bug604589.test @@ -0,0 +1,6 @@ +Invalid Code + +void main () { + int[,] foo = {{1}}; + var bar = foo.length.length; +}