"program" keyword has to be allowed without identifier, in TP and Delphi modes at least
FPC 3.2
https://forum.lazarus.freepascal.org/index.php/topic,60780.msg455749.html#msg455749
{$mode tp}
program;
begin
end.
Should work, as it worked at least in TP/BP/BPW 5.5 till 7.0.
Same for
{$mode delphi}
program;
begin
end.
However, Delphi does really bad job failing to infer secondary file names form the primary file name. I hope FPC can do better.
{$mode delphi}
program;
{$R *.res}
{$R *.dfm}
begin
end.
Also i somewhat remember TP5 also allowed program(Input,Output) subset, without identifier but with standard files. @PascalDragon says it is the same with Delphi today.
