[vala/0.42] tests: Add invalid "array concatenation" test to increase coverage



commit 6fba8cf018158a8cd82bc692dbed9368cf763074
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Sep 21 15:14:05 2018 +0200

    tests: Add invalid "array concatenation" test to increase coverage

 tests/Makefile.am                | 1 +
 tests/basic-types/bug570846.test | 8 ++++++++
 2 files changed, 9 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 57177c33f..3bc8baa52 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -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
index 000000000..8af1628d5
--- /dev/null
+++ b/tests/basic-types/bug570846.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+void foo (ref string[] bar) {
+       bar += "foo";
+}
+
+void main () {
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]