From: Luca Bruno Date: Sat, 25 Oct 2014 12:07:10 +0000 (+0200) Subject: Add test for commit 0f0bca7e0519 X-Git-Tag: 0.27.1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4480163eac396eae7707ca8e0fe2256286ade12;p=thirdparty%2Fvala.git Add test for commit 0f0bca7e0519 --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 85ca6b351..49357c5ab 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -28,6 +28,7 @@ TESTS = \ basic-types/bug596637.vala \ basic-types/bug596785.vala \ basic-types/bug632322.vala \ + basic-types/bug644046.vala \ basic-types/bug647222.vala \ basic-types/bug648364.vala \ basic-types/bug650993.vala \ diff --git a/tests/basic-types/bug644046.vala b/tests/basic-types/bug644046.vala new file mode 100644 index 000000000..6044ffca5 --- /dev/null +++ b/tests/basic-types/bug644046.vala @@ -0,0 +1,10 @@ +const int foo[] = {1,2,3}; + + +void main () { + int baz[] = {3,4,5}; + assert (foo.length == 3); + assert (foo[1] == 2); + assert (baz.length == 3); + assert (baz[1] == 4); +} \ No newline at end of file