diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/test_read.tpc | 1 | ||||
-rw-r--r-- | res/test_return.tpc | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/res/test_read.tpc b/res/test_read.tpc index 0109e4d..6ad3632 100644 --- a/res/test_read.tpc +++ b/res/test_read.tpc | |||
@@ -9,4 +9,5 @@ entier main(void) { | |||
9 | caractere r1; | 9 | caractere r1; |
10 | readc(r1); | 10 | readc(r1); |
11 | print(r1); | 11 | print(r1); |
12 | return 0; | ||
12 | } | 13 | } |
diff --git a/res/test_return.tpc b/res/test_return.tpc new file mode 100644 index 0000000..241a1ba --- /dev/null +++ b/res/test_return.tpc | |||
@@ -0,0 +1,13 @@ | |||
1 | /* test-table-symboles.tpc */ | ||
2 | |||
3 | /* Test file for simplified translator of a declaration of variables in C */ | ||
4 | entier r1,b,s,c,r2 ; | ||
5 | caractere letter, digit, punct; | ||
6 | |||
7 | entier test(void){ | ||
8 | } | ||
9 | |||
10 | entier main(void) { | ||
11 | print(test()); | ||
12 | return 0; | ||
13 | } | ||