summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0487.pp
blob: 2233a3eb8afe544eff694583be5f33ace7cb8bca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
uses
  variants;
var
  v : variant;
  i : longint;

begin
  v:=true;
  if not(v) then
    halt(1);
  while not(v) do
    halt(1);
  i:=1;
  repeat
    if i>1 then
      halt(1);
    inc(i);
  until v;
  writeln('ok');
end.