aboutsummaryrefslogtreecommitdiff
path: root/check/array.p
blob: e378655f92a8b253dd19b4a76c1ccdb33afdfe2a (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
program main ( input, output );

        var a, b: integer;
        var x,y,z: real;
	var ai :array [1..10] of integer;
	procedure boo (n: integer);
	var a,c: integer;
	begin
		a := n
	end;
	function bar (a: integer) : 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
	(* test *)
end.