]> 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>
Mon, 27 Nov 2023 21:23:04 +0000 (22:23 +0100)
tests/Makefile.am
tests/arrays/length-type-no-integer.test [new file with mode: 0644]

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