From: Rico Tzschichholz Date: Sat, 16 Nov 2019 11:51:08 +0000 (+0100) Subject: tests: Add "invalid address-of" test to increase coverage X-Git-Tag: 0.47.2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8af4e4911f4e1b445b0630576ab6255479ae8e3b;p=thirdparty%2Fvala.git tests: Add "invalid address-of" test to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 24331e437..01161db0a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -651,6 +651,7 @@ TESTS = \ ordering/delegate-interface.vala \ ordering/delegate-struct.vala \ ordering/struct-delegate.vala \ + semantic/address-of-invalid.test \ semantic/array-stacked.test \ semantic/array-incompatible-initializer.test \ semantic/array-incompatible-initializer2.test \ diff --git a/tests/semantic/address-of-invalid.test b/tests/semantic/address-of-invalid.test new file mode 100644 index 000000000..c8a6ee502 --- /dev/null +++ b/tests/semantic/address-of-invalid.test @@ -0,0 +1,8 @@ +Invalid Code + +void foo () { +} + +void main () { + void* f = &foo; +}