From 56e31e3b8a1a569f42140547ffda5a91ef451b47 Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Tue, 5 Jun 2018 21:05:22 +0200 Subject: Fix call of call of functions with parameters --- res/test_parameters.tpc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'res') 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 @@ /* Test file for simplified translator of a declaration of variables in C */ -entier test(entier a,entier b,entier c){ - entier x; - entier y; - y = 1; - x = 21; - print(x+y); - return a*b+c; +void test2(caractere x,caractere y,caractere z){ + print(x); + print(y); + print(z); +} + +void test(void){ + test2('a','b','c'); } entier main(void) { - print(test(6,2,3)); + test(); return 0; } -- cgit v1.2.3