summaryrefslogtreecommitdiff
path: root/ecomp-c/test1.e
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-04-19 15:47:41 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-04-19 15:47:41 +0200
commita3651fe629769ee81acfd86d934a53866a688df0 (patch)
tree6fd6cc94c31722d3924d3f59128fa78d7d95dd47 /ecomp-c/test1.e
parent6f12b8af26e0e63830eb3cefda50b7421f92d001 (diff)
downloadcompilertests-a3651fe629769ee81acfd86d934a53866a688df0.tar.gz
compilertests-a3651fe629769ee81acfd86d934a53866a688df0.tar.bz2
added a boolean and test
Diffstat (limited to 'ecomp-c/test1.e')
-rw-r--r--ecomp-c/test1.e4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecomp-c/test1.e b/ecomp-c/test1.e
index a85f469..88a6d26 100644
--- a/ecomp-c/test1.e
+++ b/ecomp-c/test1.e
@@ -35,7 +35,7 @@ begin
f := a - b; // should be 8-7=1
flag := INIT_STATE; // should be false
flag := a = b; // flag should be false
- flag := a <> b; // flag should be true
+ //flag := a <> b; // flag should be true
//flag := a < b; // flag should be false
//flag := a <= b; // flag should be false
//flag := a > b; // flag should be true
@@ -47,7 +47,7 @@ begin
end;
i := 0;
- while i < 10 and not flag do
+ while ( i < 10 ) and not flag do
i := i + 1;
end;
end