[vala/wip/transform: 67/100] tests: add regression test for CCodeMethodModule.get_yield_count
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/transform: 67/100] tests: add regression test for CCodeMethodModule.get_yield_count
- Date: Sun, 9 Feb 2014 10:46:34 +0000 (UTC)
commit 41af5b5eebb31bfcf8927ab53772e22a3c35a5b5
Author: Rico Tzschichholz <ricotz t-online de>
Date: Mon Oct 29 13:28:28 2012 +0100
tests: add regression test for CCodeMethodModule.get_yield_count
tests/Makefile.am | 1 +
tests/asynchronous/yield.vala | 10 ++++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 5fc8529..17dd19f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -180,6 +180,7 @@ TESTS = \
asynchronous/bug654337.vala \
asynchronous/bug661961.vala \
asynchronous/closures.vala \
+ asynchronous/yield.vala \
dbus/basic-types.test \
dbus/arrays.test \
dbus/structs.test \
diff --git a/tests/asynchronous/yield.vala b/tests/asynchronous/yield.vala
new file mode 100644
index 0000000..4c4d53b
--- /dev/null
+++ b/tests/asynchronous/yield.vala
@@ -0,0 +1,10 @@
+async void foo ()
+{
+ while (true) {
+ yield;
+ }
+}
+
+void main () {
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]