aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAdam NAILI2018-06-06 01:23:00 +0200
committerAdam NAILI2018-06-06 01:23:00 +0200
commitaa16ecbb7e3a3dbd9ecc5c3d5e12f7c96a41974f (patch)
tree191ee8057f63f17f8677cee4ad290fd010b0050d /res
parent28c8d2c07a2dd8140da5ca6464c0eb8887624f34 (diff)
downloadtpc-compiler-aa16ecbb7e3a3dbd9ecc5c3d5e12f7c96a41974f.tar.gz
Array management
Diffstat (limited to 'res')
-rw-r--r--res/test_array.tpc10
1 files changed, 10 insertions, 0 deletions
diff --git a/res/test_array.tpc b/res/test_array.tpc
new file mode 100644
index 0000000..a968c22
--- /dev/null
+++ b/res/test_array.tpc
@@ -0,0 +1,10 @@
1entier tab[5];
2
3entier main(void) {
4 tab[1]=3;
5 tab[2]=22;
6 print(tab[2]+tab[1]);
7 print(tab[1]);
8 print(tab[2]);
9 return 0;
10}