Support brackets for accessing array values.
Don't yet support allocating arrays.
diff --git a/libacc/tests/test.py b/libacc/tests/test.py
index 0249695..4be1f4b 100644
--- a/libacc/tests/test.py
+++ b/libacc/tests/test.py
@@ -368,6 +368,13 @@
arg: 12
""")
+ def testBrackets(self):
+ self.compileCheck(["-R", "data/brackets.c"], """Executing compiled code:
+Errors: 0
+2D Errors: 0
+result: 0
+""","""""")
+
if __name__ == '__main__':
if not outputCanRun():
print "Many tests are expected to fail, because acc is not a 32-bit x86 Linux executable."