From: Rico Tzschichholz Date: Sat, 23 Oct 2021 13:27:12 +0000 (+0200) Subject: tests: Add invalid "unary decrement" test to increase coverage X-Git-Tag: 0.55.1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dadfb89c2f454545fab0df762de17e9251dbf017;p=thirdparty%2Fvala.git tests: Add invalid "unary decrement" test to increase coverage --- 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 (); +}