[vala/0.40] tests: Add "method ccode return-type" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] tests: Add "method ccode return-type" test to increase coverage
- Date: Tue, 9 Apr 2019 13:49:21 +0000 (UTC)
commit c4556943ccf7e6a007cd7a4d2dab58e4c8b975c8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Mar 10 18:14:09 2019 +0100
tests: Add "method ccode return-type" test to increase coverage
https://bugzilla.gnome.org/show_bug.cgi?id=699956
tests/Makefile.am | 1 +
tests/methods/bug699956.vala | 14 ++++++++++++++
2 files changed, 15 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index feb7f0a48..629564a6d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -112,6 +112,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 ();
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]