[vala/staging: 1/3] tests: Add invalid "silent cast of array" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 1/3] tests: Add invalid "silent cast of array" test to increase coverage
- Date: Thu, 24 Oct 2019 12:40:20 +0000 (UTC)
commit 9b13e240bfda66fed6f540e249d53a241d22960c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Oct 23 15:30:40 2019 +0200
tests: Add invalid "silent cast of array" test to increase coverage
tests/Makefile.am | 1 +
tests/arrays/cast-silent-invalid.test | 6 ++++++
2 files changed, 7 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index cca86afdf..b2a740c13 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -70,6 +70,7 @@ TESTS = \
basic-types/bug777697.test \
basic-types/bug787152.vala \
basic-types/bug788775.vala \
+ arrays/cast-silent-invalid.test \
arrays/class-field-length-cname.vala \
arrays/expression-bracket.test \
arrays/field-global-length-cname.vala \
diff --git a/tests/arrays/cast-silent-invalid.test b/tests/arrays/cast-silent-invalid.test
new file mode 100644
index 000000000..6e7361567
--- /dev/null
+++ b/tests/arrays/cast-silent-invalid.test
@@ -0,0 +1,6 @@
+Invalid Code
+
+void main () {
+ void* foo = null;
+ unowned int[] bar = foo as int[];
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]