diff options
author | pacien | 2018-06-06 14:14:55 +0200 |
---|---|---|
committer | pacien | 2018-06-06 14:14:55 +0200 |
commit | 01406ad25ff49d5c5f722f34187d2063cefea5ed (patch) | |
tree | 4d96a701aa1986abe79f2469ffd641c4123749bb /res/test_if.tpc | |
parent | 64d73526bf9d39ad9d3f04509f6656abde2240fd (diff) | |
download | tpc-compiler-01406ad25ff49d5c5f722f34187d2063cefea5ed.tar.gz |
require main func and rename tests
Diffstat (limited to 'res/test_if.tpc')
-rw-r--r-- | res/test_if.tpc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/res/test_if.tpc b/res/test_if.tpc deleted file mode 100644 index 054811b..0000000 --- a/res/test_if.tpc +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | /* test-table-symboles.tpc */ | ||
2 | |||
3 | /* Test file for simplified translator of a declaration of variables in C */ | ||
4 | |||
5 | entier main(void) { | ||
6 | entier bool1, bool2; | ||
7 | bool1 = 0; | ||
8 | bool2 = 0; | ||
9 | if(bool1 == bool2){ | ||
10 | if(bool1 != bool2){ | ||
11 | print('n'); | ||
12 | } | ||
13 | else{ | ||
14 | if(bool1 <= bool2){ | ||
15 | print('o'); | ||
16 | return 0; | ||
17 | } | ||
18 | print('n'); | ||
19 | } | ||
20 | } | ||
21 | return 0; | ||
22 | } | ||