aboutsummaryrefslogtreecommitdiff
path: root/check/for.p
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-08-04 21:23:38 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-08-04 21:23:38 -0400
commit0caa6768c7055c3e3fb2f2ebeda2c35152ea011b (patch)
treeaccd9c043b439e60257640f06d9728263fafa8b6 /check/for.p
parent0408f0c8d8d095267b322859e208f209edd47311 (diff)
Update checks
Diffstat (limited to 'check/for.p')
-rw-r--r--check/for.p16
1 files changed, 16 insertions, 0 deletions
diff --git a/check/for.p b/check/for.p
new file mode 100644
index 0000000..694f9a5
--- /dev/null
+++ b/check/for.p
@@ -0,0 +1,16 @@
+program main ( input, output );
+
+ var a, b: integer;
+ var x,y,z: real;
+ var ai :array [1..10] of integer;
+begin
+{ TEST }
+
+ a := 1;
+ x := 3.14;
+ b := a + 35;
+ (* test *)
+ for c := 0 to 10 do begin
+ for a:= 10 downto 0 do b := a - c
+ end
+end.