Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tests: Add "invalid address-of" test to increase coverage
  • Loading branch information
ricotz committed Nov 18, 2019
1 parent 0244bd3 commit b7a8fac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Makefile.am
Expand Up @@ -639,6 +639,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 \
Expand Down
8 changes: 8 additions & 0 deletions tests/semantic/address-of-invalid.test
@@ -0,0 +1,8 @@
Invalid Code

void foo () {
}

void main () {
void* f = &foo;
}

0 comments on commit b7a8fac

Please sign in to comment.