summaryrefslogtreecommitdiff
path: root/ecomp-c/test1.e
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-04-03 11:46:27 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-04-03 11:46:27 +0200
commitf6802425cb042ee84a3e1656483d45ada39414de (patch)
treead25fd35010aa7c479924ff57a0c7b048cff1fc3 /ecomp-c/test1.e
parentbc21d49f9084181aeae43250bf1754fecc7223c1 (diff)
downloadcompilertests-f6802425cb042ee84a3e1656483d45ada39414de.tar.gz
compilertests-f6802425cb042ee84a3e1656483d45ada39414de.tar.bz2
added while
Diffstat (limited to 'ecomp-c/test1.e')
-rw-r--r--ecomp-c/test1.e6
1 files changed, 6 insertions, 0 deletions
diff --git a/ecomp-c/test1.e b/ecomp-c/test1.e
index 288d301..d5dc91d 100644
--- a/ecomp-c/test1.e
+++ b/ecomp-c/test1.e
@@ -21,6 +21,7 @@ var
c : integer; // c too
d, e, f : integer;
flag : boolean;
+ i : integer;
begin
a := 1;
@@ -44,4 +45,9 @@ begin
else
a := 8;
end;
+
+ i := 0;
+ while i < 10 do
+ i := i + 1;
+ end;
end