diff options
Diffstat (limited to 'res/test_parameters.tpc')
-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 | } |