summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0468.pp
blob: c2d8b0f255bb2b6747daa0ad55fa41ef23675c09 (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
35
36
{ %CPU=i386 }
{ %OPT=-Sg }
program tb0468;

{$asmmode intel}

procedure x;

label a;

var b:pointer;

begin
  b:=@a;
a:
end;

procedure jumptabproc; assembler;

label a,b,c,d;

const jumptable:array[0..3] of pointer=(@a,@b,@b,@d);

asm
a:
 nop
b:
 nop
c:
 nop
d:
 nop
end;

begin
end.