diff options
Diffstat (limited to 'res/test_if.tpc')
-rw-r--r-- | res/test_if.tpc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/res/test_if.tpc b/res/test_if.tpc index adb097a..054811b 100644 --- a/res/test_if.tpc +++ b/res/test_if.tpc | |||
@@ -3,10 +3,20 @@ | |||
3 | /* Test file for simplified translator of a declaration of variables in C */ | 3 | /* Test file for simplified translator of a declaration of variables in C */ |
4 | 4 | ||
5 | entier main(void) { | 5 | entier main(void) { |
6 | entier bool1,bool2; | 6 | entier bool1, bool2; |
7 | bool1 = 0; | 7 | bool1 = 0; |
8 | bool2 = 0; | 8 | bool2 = 0; |
9 | if(bool1 == bool2){ | 9 | if(bool1 == bool2){ |
10 | print(0); | 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 | } | ||
11 | } | 20 | } |
21 | return 0; | ||
12 | } | 22 | } |