mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 11:49:23 +02:00
* 2 tests for integer constant to pointer conversion
This commit is contained in:
parent
f670a09707
commit
213f373613
8
tests/tbf/tb0159.pp
Normal file
8
tests/tbf/tb0159.pp
Normal file
@ -0,0 +1,8 @@
|
||||
{%fail}
|
||||
program tb0159;
|
||||
|
||||
var x:pointer;
|
||||
|
||||
begin
|
||||
x:=0;
|
||||
end.
|
10
tests/tbs/tb0465.pp
Normal file
10
tests/tbs/tb0465.pp
Normal file
@ -0,0 +1,10 @@
|
||||
program tb0465;
|
||||
|
||||
{$mode delphi}
|
||||
|
||||
var x:pointer;
|
||||
|
||||
begin
|
||||
x:=0;
|
||||
x:=pointer(0);
|
||||
end.
|
Loading…
Reference in New Issue
Block a user