From 6fba8cf018158a8cd82bc692dbed9368cf763074 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Fri, 21 Sep 2018 15:14:05 +0200 Subject: [PATCH] tests: Add invalid "array concatenation" test to increase coverage --- tests/Makefile.am | 1 + tests/basic-types/bug570846.test | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/basic-types/bug570846.test 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 () { +} -- 2.47.2