diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2011-06-18 12:21:14 +0200 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2011-06-18 12:23:25 +0200 |
commit | 0e9b10c1a7b612abfdc7feb5b3c71b77705144e7 (patch) | |
tree | 64470f02b71aea06ddd3983f4fac5b70b1e261c8 /tests/control-flow | |
parent | 3ee508f5fdf332978848d344049bdeeb3fbe741a (diff) | |
download | vala-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.vala | 6 |
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); + } +} |