summaryrefslogtreecommitdiff
path: root/tests/control-flow
diff options
context:
space:
mode:
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);
+ }
+}