Explorar o código

* 2 tests for integer constant to pointer conversion

daniel %!s(int64=22) %!d(string=hai) anos
pai
achega
213f373613
Modificáronse 2 ficheiros con 18 adicións e 0 borrados
  1. 8 0
      tests/tbf/tb0159.pp
  2. 10 0
      tests/tbs/tb0465.pp

+ 8 - 0
tests/tbf/tb0159.pp

@@ -0,0 +1,8 @@
+{%fail}
+program tb0159;
+
+var x:pointer;
+
+begin
+  x:=0;
+end.

+ 10 - 0
tests/tbs/tb0465.pp

@@ -0,0 +1,10 @@
+program tb0465;
+
+{$mode delphi}
+
+var x:pointer;
+
+begin
+  x:=0;
+  x:=pointer(0);
+end.