From: Rico Tzschichholz Date: Mon, 27 Nov 2023 21:23:04 +0000 (+0100) Subject: tests: Add invalid "array length type" test to increase coverage X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d5c0f958ff8ff8b2e62f355beee93a4008c91fd;p=thirdparty%2Fvala.git tests: Add invalid "array length type" test to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 0b4a8396d..1685cc188 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -154,6 +154,7 @@ TESTS = \ arrays/length-inline-assignment.vala \ arrays/length-type.vala \ arrays/length-type-include.vala \ + arrays/length-type-no-integer.test \ arrays/length-no-int-type.test \ arrays/struct-field-length-cname.vala \ arrays/struct-field-initializer.vala \ diff --git a/tests/arrays/length-type-no-integer.test b/tests/arrays/length-type-no-integer.test new file mode 100644 index 000000000..7e900bf54 --- /dev/null +++ b/tests/arrays/length-type-no-integer.test @@ -0,0 +1,5 @@ +Invalid Code + +void main () { + int[:float] foo; +}