aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/test_parameters.tpc17
1 files changed, 17 insertions, 0 deletions
diff --git a/res/test_parameters.tpc b/res/test_parameters.tpc
new file mode 100644
index 0000000..d7b2061
--- /dev/null
+++ b/res/test_parameters.tpc
@@ -0,0 +1,17 @@
1/* test-table-symboles.tpc */
2
3/* Test file for simplified translator of a declaration of variables in C */
4
5entier test(entier a,entier b,entier c){
6 entier x;
7 entier y;
8 y = 1;
9 x = 21;
10 print(x+y);
11 return a*b+c;
12}
13
14entier main(void) {
15 print(test(6,2,3));
16 return 0;
17}