diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-23 19:06:50 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-23 19:52:47 +0200 |
commit | 3a2fdaa489e6b5417f5354b231fab28cfde73104 (patch) | |
tree | 2d22d49dc7d2c18b9679eb1769580c5cbeada3ff /tests/parser | |
parent | 85549c3332cb7197167fae64e426eb8e8b4e9ab4 (diff) | |
download | vala-3a2fdaa489e6b5417f5354b231fab28cfde73104.tar.gz |
tests: Add invalid "parser" tests to increase coverage
Diffstat (limited to 'tests/parser')
-rw-r--r-- | tests/parser/creation-no-new.test | 9 | ||||
-rw-r--r-- | tests/parser/delegate-anonymous.test | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/parser/creation-no-new.test b/tests/parser/creation-no-new.test new file mode 100644 index 000000000..97f30ddfb --- /dev/null +++ b/tests/parser/creation-no-new.test @@ -0,0 +1,9 @@ +Invalid Code + +public class Test { + new Test () { + } +} + +void main () { +} diff --git a/tests/parser/delegate-anonymous.test b/tests/parser/delegate-anonymous.test new file mode 100644 index 000000000..25b632b38 --- /dev/null +++ b/tests/parser/delegate-anonymous.test @@ -0,0 +1,7 @@ +Invalid Code + +[CCode (has_typedef = false)] +public delegate void MyDelegate (); + +void main () { +} |