aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAdam NAILI2018-06-05 21:05:22 +0200
committerAdam NAILI2018-06-05 21:05:22 +0200
commit56e31e3b8a1a569f42140547ffda5a91ef451b47 (patch)
treeab7412ef90736f1ccc386670b024b48b593f34b0 /res
parenta67cd40065f790383776ec3fffa364f6443f7ee7 (diff)
downloadtpc-compiler-56e31e3b8a1a569f42140547ffda5a91ef451b47.tar.gz
Fix call of call of functions with parameters
Diffstat (limited to 'res')
-rw-r--r--res/test_parameters.tpc17
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
5entier test(entier a,entier b,entier c){ 5void 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; 11void test(void){
12 test2('a','b','c');
12} 13}
13 14
14entier main(void) { 15entier main(void) {
15 print(test(6,2,3)); 16 test();
16 return 0; 17 return 0;
17} 18}