]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Add test for commit 0f0bca7e0519
authorLuca Bruno <lucabru@src.gnome.org>
Sat, 25 Oct 2014 12:07:10 +0000 (14:07 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Sat, 25 Oct 2014 12:07:10 +0000 (14:07 +0200)
tests/Makefile.am
tests/basic-types/bug644046.vala [new file with mode: 0644]

index 85ca6b351ab6c81acfc11701a132b372cb76497a..49357c5abc61680221b43b3bc3dbe363bffaeed0 100644 (file)
@@ -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 (file)
index 0000000..6044ffc
--- /dev/null
@@ -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