summaryrefslogtreecommitdiff
path: root/tests/semantic/method-virtual-no-class-or-interface.test
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2023-05-17 22:40:53 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2023-05-17 22:40:53 +0200
commitdef1415ee1f35e4615adfd1c503fc445bbbbe02b (patch)
tree73b1c0f8e3f4c00a568e0b3a2cd9e6683e8a7ed7 /tests/semantic/method-virtual-no-class-or-interface.test
parent6abafafe48f304cb04cb1fde604b282cbb6fcffb (diff)
downloadvala-def1415ee1f35e4615adfd1c503fc445bbbbe02b.tar.gz
tests: Add more method tests to increase coverageHEADstagingmain
Diffstat (limited to 'tests/semantic/method-virtual-no-class-or-interface.test')
-rw-r--r--tests/semantic/method-virtual-no-class-or-interface.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/semantic/method-virtual-no-class-or-interface.test b/tests/semantic/method-virtual-no-class-or-interface.test
new file mode 100644
index 000000000..6b1161fe1
--- /dev/null
+++ b/tests/semantic/method-virtual-no-class-or-interface.test
@@ -0,0 +1,11 @@
+Invalid Code
+
+struct Foo {
+ public int i;
+
+ public virtual void foo () {
+ }
+}
+
+void main () {
+}