From: Rico Tzschichholz Date: Sat, 24 Sep 2016 11:02:48 +0000 (+0200) Subject: tests: Add async constructor test X-Git-Tag: 0.34.1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8fba4c0f2aec7a4fa01993f94be0f797adfe0b5;p=thirdparty%2Fvala.git tests: Add async constructor test https://bugzilla.gnome.org/show_bug.cgi?id=659886 --- diff --git a/tests/Makefile.am b/tests/Makefile.am index b2caa7767..e5c23018e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 index 000000000..39f48e59b --- /dev/null +++ b/tests/asynchronous/bug659886.vala @@ -0,0 +1,14 @@ +class Foo : Object { + public async Foo () { + Object (); + } +} + +Foo f; + +public async void bar () { + f = yield new Foo (); +} + +void main () { +}