]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add invalid "array concatenation" test to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 21 Sep 2018 13:14:05 +0000 (15:14 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 21 Sep 2018 13:14:05 +0000 (15:14 +0200)
tests/Makefile.am
tests/basic-types/bug570846.test [new file with mode: 0644]

index 57177c33fbafb92fd453a6e5e435bbfeb7aab044..3bc8baa52c0d04be195d686827140d27ec2d53b2 100644 (file)
@@ -30,6 +30,7 @@ TESTS = \
        basic-types/sizeof.vala \
        basic-types/garray.vala \
        basic-types/glists.vala \
+       basic-types/bug570846.test \
        basic-types/bug571486.vala \
        basic-types/bug591552.vala \
        basic-types/bug595751.vala \
diff --git a/tests/basic-types/bug570846.test b/tests/basic-types/bug570846.test
new file mode 100644 (file)
index 0000000..8af1628
--- /dev/null
@@ -0,0 +1,8 @@
+Invalid Code
+
+void foo (ref string[] bar) {
+       bar += "foo";
+}
+
+void main () {
+}