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



commit 77ac04967d43186ca4e374c690ef7659b236ddf6
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]