* inc(ptr) should not give warnings

This commit is contained in:
peter 2004-11-02 12:26:19 +00:00
parent e7b4c63e99
commit a9163ca649

15
tests/test/cg/tcnvptr.pp Normal file
View File

@ -0,0 +1,15 @@
{ %opt=-Sew }
var
p : pointer;
b : byte;
w : word;
a : array[0..10] of char;
begin
b:=1;
w:=1;
p:=@a;
// This should work without warnings
inc(p,b);
inc(p,w);
end.