printf with record parameter gives internal error 2004102303
Does this even work in C? Crashes FPC though!
Free Pascal Compiler version 3.3.1 [2023/03/03] for aarch64
{$mode objfpc}
program test;
type
TMyRecord = record
end;
function printf(format: PChar): Integer; external; varargs;
var
r: TMyRecord;
begin
printf('test', r); // Fatal: Internal error 2004102303
end.