mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-01 12:22:35 +02:00
* unreachable code warning
This commit is contained in:
parent
11c8f72e53
commit
3a9740ab12
23
tests/webtbf/tw3553.pp
Normal file
23
tests/webtbf/tw3553.pp
Normal file
@ -0,0 +1,23 @@
|
||||
{ %fail }
|
||||
{ %opt=-Sew }
|
||||
|
||||
{ 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.
|
Loading…
Reference in New Issue
Block a user