summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/tgoto.pp
blob: 735029b0a1a788097fdf61ff4dbe3cde66268765 (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
program testgoto;

{$goto on}

function test : longint;

label l;


var
   a,b : longint;

begin
   a:=1;
   b:=1;
   l:
     if a>b then
       begin
          exit(0);
       end;
   a:=2;
   goto l;
end;

begin
   test;
end.