|
@@ -117,6 +117,7 @@ Type
|
|
|
Procedure TestAsmBlockInIfThen;
|
|
|
Procedure TestGotoInIfThen;
|
|
|
procedure AssignToAddress;
|
|
|
+ procedure FinalizationNoSemicolon;
|
|
|
end;
|
|
|
|
|
|
implementation
|
|
@@ -1703,6 +1704,19 @@ begin
|
|
|
ParseModule;
|
|
|
end;
|
|
|
|
|
|
+procedure TTestStatementParser.FinalizationNoSemicolon;
|
|
|
+begin
|
|
|
+ Source.Add('unit afile;');
|
|
|
+ Source.Add('{$mode objfpc}');
|
|
|
+ Source.Add('interface');
|
|
|
+ Source.Add('implementation');
|
|
|
+ Source.Add('initialization');
|
|
|
+ Source.Add(' writeln(''qqq'')');
|
|
|
+ Source.Add('finalization');
|
|
|
+ Source.Add(' writeln(''qqq'')');
|
|
|
+ ParseModule;
|
|
|
+end;
|
|
|
+
|
|
|
Procedure TTestStatementParser.TestGotoInIfThen;
|
|
|
|
|
|
begin
|