From: Rico Tzschichholz Date: Sun, 10 Mar 2019 17:14:09 +0000 (+0100) Subject: tests: Add "method ccode return-type" test to increase coverage X-Git-Tag: 0.42.7~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9838cdd899349e8c1314151c639b0ecf044b5f2a;p=thirdparty%2Fvala.git tests: Add "method ccode return-type" test to increase coverage https://bugzilla.gnome.org/show_bug.cgi?id=699956 --- diff --git a/tests/Makefile.am b/tests/Makefile.am index c71e0cf40..cfe9b25a9 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 index 000000000..777cde460 --- /dev/null +++ b/tests/methods/bug699956.vala @@ -0,0 +1,14 @@ +class Foo { +} + +class Bar : Foo { +} + +[CCode (type = "methodsbug699956Foo*")] +Bar? foo () { + return null; +} + +void main () { + foo (); +}