Skip to content

Commit

Permalink
tests: Add invalid "silent cast of array" test to increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ricotz committed Oct 28, 2019
1 parent 16694dc commit de90c80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Makefile.am
Expand Up @@ -70,6 +70,7 @@ TESTS = \
basic-types/bug777697.test \
basic-types/bug787152.vala \
basic-types/bug788775.vala \
arrays/cast-silent-invalid.test \
arrays/class-field-length-cname.vala \
arrays/expression-bracket.test \
arrays/field-global-length-cname.vala \
Expand Down
6 changes: 6 additions & 0 deletions tests/arrays/cast-silent-invalid.test
@@ -0,0 +1,6 @@
Invalid Code

void main () {
void* foo = null;
unowned int[] bar = foo as int[];
}

0 comments on commit de90c80

Please sign in to comment.