diff options
author | pacien | 2018-06-06 14:14:55 +0200 |
---|---|---|
committer | pacien | 2018-06-06 14:14:55 +0200 |
commit | 01406ad25ff49d5c5f722f34187d2063cefea5ed (patch) | |
tree | 4d96a701aa1986abe79f2469ffd641c4123749bb /res/test_mul_ok.tpc | |
parent | 64d73526bf9d39ad9d3f04509f6656abde2240fd (diff) | |
download | tpc-compiler-01406ad25ff49d5c5f722f34187d2063cefea5ed.tar.gz |
require main func and rename tests
Diffstat (limited to 'res/test_mul_ok.tpc')
-rw-r--r-- | res/test_mul_ok.tpc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/res/test_mul_ok.tpc b/res/test_mul_ok.tpc new file mode 100644 index 0000000..62a8080 --- /dev/null +++ b/res/test_mul_ok.tpc | |||
@@ -0,0 +1,13 @@ | |||
1 | entier a; | ||
2 | |||
3 | entier main(void) { | ||
4 | entier a,b,res; | ||
5 | a = 2; | ||
6 | b = 3; | ||
7 | res = a * b; | ||
8 | print(res); | ||
9 | res = a / b; | ||
10 | print(res); | ||
11 | res = a % b; | ||
12 | print(res); | ||
13 | } | ||