[vala] tests: Add async constructor test
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] tests: Add async constructor test
- Date: Sat, 24 Sep 2016 11:03:44 +0000 (UTC)
commit f8fba4c0f2aec7a4fa01993f94be0f797adfe0b5
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Sep 24 13:02:48 2016 +0200
tests: Add async constructor test
https://bugzilla.gnome.org/show_bug.cgi?id=659886
tests/Makefile.am | 1 +
tests/asynchronous/bug659886.vala | 14 ++++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index b2caa77..e5c2301 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 0000000..39f48e5
--- /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 () {
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]