aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAdam NAILI2018-05-04 11:19:08 +0200
committerAdam NAILI2018-05-04 11:19:08 +0200
commit13e036c9ffcf670869b4682f8f6993cc6667ab07 (patch)
treea64fd28439b60634930a2ba8ad40145ec8038185 /res
parent2ebd7d03e6d9ff5d8badc637ca4c6ab3c6db4e81 (diff)
downloadtpc-compiler-13e036c9ffcf670869b4682f8f6993cc6667ab07.tar.gz
IF/ELSE
Diffstat (limited to 'res')
-rw-r--r--res/test_if.tpc13
1 files changed, 13 insertions, 0 deletions
diff --git a/res/test_if.tpc b/res/test_if.tpc
new file mode 100644
index 0000000..04f7505
--- /dev/null
+++ b/res/test_if.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
5entier main(void) {
6 entier bool;
7 bool = 1;
8 if(bool){
9 if(bool){
10 print (bool);
11 }
12 }
13}