[vala/staging] tests: Add "unsupported use of length field" test to increase coverage



commit 8ecb47f50b2cb8bcee8aee27137a53b4ad7884f6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Sep 21 15:03:42 2018 +0200

    tests: Add "unsupported use of length field" test to increase coverage

 tests/Makefile.am                | 1 +
 tests/basic-types/bug604589.test | 6 ++++++
 2 files changed, 7 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 1b8162638..57177c33f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -36,6 +36,7 @@ TESTS = \
        basic-types/bug596637.vala \
        basic-types/bug596785.vala \
        basic-types/bug604371.vala \
+       basic-types/bug604589.test \
        basic-types/bug622178.vala \
        basic-types/bug632322.vala \
        basic-types/bug643612.vala \
diff --git a/tests/basic-types/bug604589.test b/tests/basic-types/bug604589.test
new file mode 100644
index 000000000..75a0b17f6
--- /dev/null
+++ b/tests/basic-types/bug604589.test
@@ -0,0 +1,6 @@
+Invalid Code
+
+void main () {
+    int[,] foo = {{1}};
+    var bar = foo.length.length;
+}


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