aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAdam NAILI2018-06-05 14:56:02 +0200
committerAdam NAILI2018-06-05 14:56:02 +0200
commit0255cca32a78847d2de0134740b991a77f5ad555 (patch)
treeba2bb6bfa74fa63ef75ab31db2b3cdb8b2e0123d /res
parent53e859913d6eb7141dbd1ed48f28c336f1322534 (diff)
downloadtpc-compiler-0255cca32a78847d2de0134740b991a77f5ad555.tar.gz
Return test
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}