summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-09-29 22:19:18 +0200
committerJürg Billeter <j@bitron.ch>2009-09-29 22:19:18 +0200
commit99ec168d1042c9baa38819805edaadfda2646cd2 (patch)
tree9fa8fac7b0918b7b7e4bbc15ba841c66b23d7307 /tests
parent9c0e7c1447bb932df92e6f0a0966e1da363f2c9d (diff)
downloadvala-99ec168d1042c9baa38819805edaadfda2646cd2.tar.gz
Support postfix operator on array members
Fixes bug 596637.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/basic-types/bug596637.vala5
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index f1058b826..821b4a259 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -20,6 +20,7 @@ TESTS = \
basic-types/strings.vala \
basic-types/arrays.vala \
basic-types/pointers.vala \
+ basic-types/bug596637.vala \
namespaces.vala \
methods/lambda.vala \
methods/closures.vala \
diff --git a/tests/basic-types/bug596637.vala b/tests/basic-types/bug596637.vala
new file mode 100644
index 000000000..904de17ff
--- /dev/null
+++ b/tests/basic-types/bug596637.vala
@@ -0,0 +1,5 @@
+void main () {
+ int[] a = new int[1];
+ a[0]++;
+ assert (a[0] == 1);
+}