aboutsummaryrefslogtreecommitdiff
path: root/check/array.p
blob: e312ef561f971294bbc7522f3d1997511958d8ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
program main ( input, output );

        var a, b: integer;
        var x,y,z: real;
	var ai :array [1..10] of integer;
	var ar, ar2, ar3, ar4 :array [10..100] of real;
	procedure boo (n: integer);
	var a,c: integer;
	begin
		a := n
	end;
	function bar (a: integer; b: array [19..100] of real) : real;
	var test:integer;
	begin
		test := 2;
		a := 2
	end;
	procedure foo;
	begin
		a := 33333;
		x := 1e10;
		z := 1e-10;
		y := 2.5543e-2
	end;
begin
{ TEST }

	a := 1;
        x := 3.14;
	b := a + 35;
	ai[2] := a;
	bar (a, ar)
	(* test *)
end.