]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add "method ccode return-type" test to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 10 Apr 2019 14:26:16 +0000 (16:26 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=699956

tests/Makefile.am
tests/methods/bug699956.vala [new file with mode: 0644]

index c71e0cf40bd03335200c36b8fba7e20c37a444e0..cfe9b25a93256e0c9d26bae6c9d251cc3d9422b4 100644 (file)
@@ -118,6 +118,7 @@ TESTS = \
        methods/bug653391.vala \
        methods/bug653908.vala \
        methods/bug663210.vala \
+       methods/bug699956.vala \
        methods/bug710862.vala \
        methods/bug723009.vala \
        methods/bug723195.vala \
diff --git a/tests/methods/bug699956.vala b/tests/methods/bug699956.vala
new file mode 100644 (file)
index 0000000..777cde4
--- /dev/null
@@ -0,0 +1,14 @@
+class Foo {
+}
+
+class Bar : Foo {
+}
+
+[CCode (type = "methodsbug699956Foo*")]
+Bar? foo () {
+       return null;
+}
+
+void main () {
+       foo ();
+}