Explorar el Código

* unreachable code warning

peter hace 20 años
padre
commit
3a9740ab12
Se han modificado 1 ficheros con 23 adiciones y 0 borrados
  1. 23 0
      tests/webtbf/tw3553.pp

+ 23 - 0
tests/webtbf/tw3553.pp

@@ -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: [email protected] }
+
+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.