diff options
author | Adam NAILI | 2018-06-05 21:05:22 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-05 21:05:22 +0200 |
commit | 56e31e3b8a1a569f42140547ffda5a91ef451b47 (patch) | |
tree | ab7412ef90736f1ccc386670b024b48b593f34b0 /res | |
parent | a67cd40065f790383776ec3fffa364f6443f7ee7 (diff) | |
download | tpc-compiler-56e31e3b8a1a569f42140547ffda5a91ef451b47.tar.gz |
Fix call of call of functions with parameters
Diffstat (limited to 'res')
-rw-r--r-- | res/test_parameters.tpc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/res/test_parameters.tpc b/res/test_parameters.tpc index d7b2061..479fb60 100644 --- a/res/test_parameters.tpc +++ b/res/test_parameters.tpc | |||
@@ -2,16 +2,17 @@ | |||
2 | 2 | ||
3 | /* Test file for simplified translator of a declaration of variables in C */ | 3 | /* Test file for simplified translator of a declaration of variables in C */ |
4 | 4 | ||
5 | entier test(entier a,entier b,entier c){ | 5 | void test2(caractere x,caractere y,caractere z){ |
6 | entier x; | 6 | print(x); |
7 | entier y; | 7 | print(y); |
8 | y = 1; | 8 | print(z); |
9 | x = 21; | 9 | } |
10 | print(x+y); | 10 | |
11 | return a*b+c; | 11 | void test(void){ |
12 | test2('a','b','c'); | ||
12 | } | 13 | } |
13 | 14 | ||
14 | entier main(void) { | 15 | entier main(void) { |
15 | print(test(6,2,3)); | 16 | test(); |
16 | return 0; | 17 | return 0; |
17 | } | 18 | } |