summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-03-10 18:14:09 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2019-03-10 18:14:09 +0100
commit0d09b1d0a8c02885442a53c013e804e37391f77d (patch)
tree94acd8b37575e38678ed735611cdcff4b408b91c
parent371512e6c85a136538869fa684a50bbfdf921f23 (diff)
downloadvala-0d09b1d0a8c02885442a53c013e804e37391f77d.tar.gz
tests: Add "method ccode return-type" test to increase coverage
https://bugzilla.gnome.org/show_bug.cgi?id=699956
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/methods/bug699956.vala14
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 77f4da866..c48c1a15b 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -121,6 +121,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..c96b5032b
--- /dev/null
+++ b/tests/methods/bug699956.vala
@@ -0,0 +1,14 @@
+class Foo {
+}
+
+class Bar : Foo {
+}
+
+[CCode (type = "Foo*")]
+Bar? foo () {
+ return null;
+}
+
+void main () {
+ foo ();
+}