summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-10-23 15:27:12 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2021-10-24 12:14:42 +0200
commit8546f455877815f1829c5ec9b020ee38d1aaa2cf (patch)
tree0c51ecbb02f1b29eb2e2c1b017a87dc58db5e6d8
parentb8b107da31fc2741b3bc1e3bb1723b6f44cf7d7c (diff)
downloadvala-8546f455877815f1829c5ec9b020ee38d1aaa2cf.tar.gz
tests: Add invalid "unary decrement" test to increase coverage
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/semantic/unary-unsupported-decrement.test9
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0edea24ac..6ba6e3b43 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1172,6 +1172,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
index 000000000..1cbd523ba
--- /dev/null
+++ b/tests/semantic/unary-unsupported-decrement.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+int foo () {
+ return 23;
+}
+
+void main () {
+ ++foo ();
+}