summaryrefslogtreecommitdiff
path: root/tests/webtbf/tw3553.pp
blob: f801d1ad03dcdcbb14a0f3a4cee4289039c968ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ %fail }
{ %opt=-Sew -vw }

{ Source provided for Free Pascal Bug Report 3553 }
{ Submitted by "Naj Kejah" on  2005-01-15 }
{ e-mail: universario@hotmail.com }

var K : integer;

BEGIN
  while FALSE do
    K:=2;{ NO warning "unreachable code" from User.txt  }

  if FALSE then
    K:=2
  else
    K:=3;

  if TRUE then
    K:=2
  else
    K:=3;
END.