aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
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}