[vala] Add test for commit 0f0bca7e0519



commit c4480163eac396eae7707ca8e0fe2256286ade12
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat Oct 25 14:07:10 2014 +0200

    Add test for commit 0f0bca7e0519

 tests/Makefile.am                |    1 +
 tests/basic-types/bug644046.vala |   10 ++++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 85ca6b3..49357c5 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 0000000..6044ffc
--- /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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]