mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 19:29:18 +02:00
parent
b741e38f98
commit
fe2df71ef5
@ -1804,7 +1804,7 @@ begin
|
||||
|
||||
ok:=false;
|
||||
try
|
||||
if Last.Kind in [pekIdent,pekSelf] then
|
||||
if Last.Kind in [pekIdent,pekSelf,pekNil] then
|
||||
begin
|
||||
while CurToken in [tkDot] do
|
||||
begin
|
||||
|
@ -136,6 +136,8 @@ type
|
||||
procedure TestTypeCast2;
|
||||
Procedure TestCreate;
|
||||
procedure TestChainedPointers;
|
||||
Procedure TestNilCaret;
|
||||
Procedure TestExpCaret;
|
||||
end;
|
||||
|
||||
implementation
|
||||
@ -605,6 +607,24 @@ begin
|
||||
ParseModule;
|
||||
end;
|
||||
|
||||
procedure TTestExpressions.TestNilCaret;
|
||||
begin
|
||||
Source.Add('{$mode objfpc}');
|
||||
Source.Add('begin');
|
||||
Source.Add('FillChar(nil^,10,10);');
|
||||
Source.Add('end.');
|
||||
ParseModule;
|
||||
end;
|
||||
|
||||
procedure TTestExpressions.TestExpCaret;
|
||||
begin
|
||||
Source.Add('{$mode objfpc}');
|
||||
Source.Add('begin');
|
||||
Source.Add('A:=B^;');
|
||||
Source.Add('end.');
|
||||
ParseModule;
|
||||
end;
|
||||
|
||||
|
||||
procedure TTestExpressions.TestUnaryMinus;
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user