summaryrefslogtreecommitdiff
path: root/tests/asynchronous
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-10-28 16:10:29 +0100
committerJürg Billeter <j@bitron.ch>2009-10-28 16:10:29 +0100
commit3eba8bfcff9f42e5971bc31980d9f317d1782a88 (patch)
tree64bdacc2bee255cd97a93b1a176520376c887877 /tests/asynchronous
parentd040b40d58f14b03e602f493bd5e551b62e0b1e0 (diff)
downloadvala-3eba8bfcff9f42e5971bc31980d9f317d1782a88.tar.gz
GAsync: Fix temporary variable initialization in loops
Fixes bug 599568.
Diffstat (limited to 'tests/asynchronous')
-rw-r--r--tests/asynchronous/bug599568.vala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/asynchronous/bug599568.vala b/tests/asynchronous/bug599568.vala
new file mode 100644
index 000000000..77a66fd6d
--- /dev/null
+++ b/tests/asynchronous/bug599568.vala
@@ -0,0 +1,9 @@
+async void do_foo () {
+ for (int i = 0; i < 2; i++) {
+ Value value = 42;
+ }
+}
+
+void main () {
+ do_foo ();
+}