Explorar o código

*** empty log message ***

florian %!s(int64=26) %!d(string=hai) anos
pai
achega
ab313eb964
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      tests/ts/ts010028.pp

+ 13 - 0
tests/ts/ts010028.pp

@@ -0,0 +1,13 @@
+// checks type cast of nil in const statement
+   type
+      THandle = longint;
+      WSAEVENT = THandle;
+   const
+      WSA_INVALID_EVENT = WSAEVENT(nil);
+
+   var
+     l : longint;
+
+begin
+   l:=WSA_INVALID_EVENT*1;
+end.