summaryrefslogtreecommitdiff
path: root/tests
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
parentd040b40d58f14b03e602f493bd5e551b62e0b1e0 (diff)
downloadvala-3eba8bfcff9f42e5971bc31980d9f317d1782a88.tar.gz
GAsync: Fix temporary variable initialization in loops
Fixes bug 599568.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/asynchronous/bug599568.vala9
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index fa289a392..4773f3a18 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -69,6 +69,7 @@ TESTS = \
asynchronous/bug598677.vala \
asynchronous/bug598697.vala \
asynchronous/bug598698.vala \
+ asynchronous/bug599568.vala \
dbus/basic-types.test \
dbus/arrays.test \
dbus/async.test \
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 ();
+}