summaryrefslogtreecommitdiff
path: root/tests/control-flow
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2011-06-18 12:21:14 +0200
committerLuca Bruno <lucabru@src.gnome.org>2011-06-18 12:23:25 +0200
commit0e9b10c1a7b612abfdc7feb5b3c71b77705144e7 (patch)
tree64470f02b71aea06ddd3983f4fac5b70b1e261c8 /tests/control-flow
parent3ee508f5fdf332978848d344049bdeeb3fbe741a (diff)
downloadvala-0e9b10c1a7b612abfdc7feb5b3c71b77705144e7.tar.gz
codegen: Fix foreach on inline allocated arrays
Fixes bug 652549.
Diffstat (limited to 'tests/control-flow')
-rw-r--r--tests/control-flow/bug652549.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/control-flow/bug652549.vala b/tests/control-flow/bug652549.vala
new file mode 100644
index 000000000..ac801af93
--- /dev/null
+++ b/tests/control-flow/bug652549.vala
@@ -0,0 +1,6 @@
+void main () {
+ int foo[2] = {1,1};
+ foreach (var bar in foo) {
+ assert (bar == 1);
+ }
+}