summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2022-08-17 10:31:41 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2022-09-26 08:50:19 +0200
commit9c8a449155c7bd36670ced5fbc98834592a3a65f (patch)
treed027ed8f116c1041d2f2f54c30ab2e822b3a24cd /tests
parentcf54db59813970eca91773713ddb67b1d94a69ee (diff)
downloadvala-9c8a449155c7bd36670ced5fbc98834592a3a65f.tar.gz
tests: Add "entry point exists" test to increase coverage
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/methods/main-entry-exists.test9
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 () {
+}