diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-08-17 10:31:41 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-09-26 08:50:19 +0200 |
commit | 9c8a449155c7bd36670ced5fbc98834592a3a65f (patch) | |
tree | d027ed8f116c1041d2f2f54c30ab2e822b3a24cd /tests | |
parent | cf54db59813970eca91773713ddb67b1d94a69ee (diff) | |
download | vala-9c8a449155c7bd36670ced5fbc98834592a3a65f.tar.gz |
tests: Add "entry point exists" test to increase coverage
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/methods/main-entry-exists.test | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index f549040d8..dd6f39684 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -245,6 +245,7 @@ TESTS = \ methods/argument-named.vala \ methods/delegate-target.vala \ methods/generics.vala \ + methods/main-entry-exists.test \ methods/nowrapper-interface.vala \ methods/nowrapper-no-vfunc.test \ methods/parameter-ccode-type.vala \ diff --git a/tests/methods/main-entry-exists.test b/tests/methods/main-entry-exists.test new file mode 100644 index 000000000..8681446cf --- /dev/null +++ b/tests/methods/main-entry-exists.test @@ -0,0 +1,9 @@ +Invalid Code + +namespace Foo { + public static void main () { + } +} + +void main () { +} |