]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add invalid "unary decrement" test to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 24 Oct 2021 12:19:07 +0000 (14:19 +0200)
tests/Makefile.am
tests/semantic/unary-unsupported-decrement.test [new file with mode: 0644]

index b7d71030198b214d1ec735edf799d1cfa4c20732..8bd6584a239e2435726f3853fcb47012e855dbb0 100644 (file)
@@ -1157,6 +1157,7 @@ TESTS = \
        semantic/type-argument-ownership-mismatch.test \
        semantic/unary-invalid-instance-member-access.test \
        semantic/unary-unsupported-complement.test \
+       semantic/unary-unsupported-decrement.test \
        semantic/unary-unsupported-increment.test \
        semantic/unary-unsupported-minus.test \
        semantic/unary-unsupported-negation.test \
diff --git a/tests/semantic/unary-unsupported-decrement.test b/tests/semantic/unary-unsupported-decrement.test
new file mode 100644 (file)
index 0000000..1cbd523
--- /dev/null
@@ -0,0 +1,9 @@
+Invalid Code
+
+int foo () {
+       return 23;
+}
+
+void main () {
+       ++foo ();
+}