]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add invalid "array length type" test to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 27 Nov 2023 21:23:04 +0000 (22:23 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 28 Jan 2024 15:07:55 +0000 (16:07 +0100)
tests/Makefile.am
tests/arrays/length-type-no-integer.test [new file with mode: 0644]

index 90dacfefd0c17d6af00125b60a3469e19986d07c..2ca2818766f3ff9c86f091d80ee5234bfde49f35 100644 (file)
@@ -141,6 +141,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 (file)
index 0000000..7e900bf
--- /dev/null
@@ -0,0 +1,5 @@
+Invalid Code
+
+void main () {
+       int[:float] foo;
+}