aboutsummaryrefslogtreecommitdiff
path: root/res/test_array_ok.tpc
diff options
context:
space:
mode:
authorpacien2018-06-06 14:14:55 +0200
committerpacien2018-06-06 14:14:55 +0200
commit01406ad25ff49d5c5f722f34187d2063cefea5ed (patch)
tree4d96a701aa1986abe79f2469ffd641c4123749bb /res/test_array_ok.tpc
parent64d73526bf9d39ad9d3f04509f6656abde2240fd (diff)
downloadtpc-compiler-01406ad25ff49d5c5f722f34187d2063cefea5ed.tar.gz
require main func and rename tests
Diffstat (limited to 'res/test_array_ok.tpc')
-rw-r--r--res/test_array_ok.tpc10
1 files changed, 10 insertions, 0 deletions
diff --git a/res/test_array_ok.tpc b/res/test_array_ok.tpc
new file mode 100644
index 0000000..a968c22
--- /dev/null
+++ b/res/test_array_ok.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}