]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add async constructor test
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 24 Sep 2016 11:02:48 +0000 (13:02 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 24 Sep 2016 11:02:48 +0000 (13:02 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=659886

tests/Makefile.am
tests/asynchronous/bug659886.vala [new file with mode: 0644]

index b2caa77679b3afd447abede81c0ddbdbdbc76933..e5c23018ed5ef6668e62599941882c937697bdbf 100644 (file)
@@ -199,6 +199,7 @@ TESTS = \
        asynchronous/bug653861.vala \
        asynchronous/bug654336.vala \
        asynchronous/bug654337.vala \
+       asynchronous/bug659886.vala \
        asynchronous/bug661961.vala \
        asynchronous/bug742621.vala \
        asynchronous/closures.vala \
diff --git a/tests/asynchronous/bug659886.vala b/tests/asynchronous/bug659886.vala
new file mode 100644 (file)
index 0000000..39f48e5
--- /dev/null
@@ -0,0 +1,14 @@
+class Foo : Object {
+       public async Foo () {
+               Object ();
+       }
+}
+
+Foo f;
+
+public async void bar () {
+       f = yield new Foo ();
+}
+
+void main () {
+}