aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/test_read.tpc1
-rw-r--r--res/test_return.tpc13
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 */
4entier r1,b,s,c,r2 ;
5caractere letter, digit, punct;
6
7entier test(void){
8}
9
10entier main(void) {
11 print(test());
12 return 0;
13}