fpc/tests/webtbf/tw39393.pp
Jonas Maebe ab01b0ebd7 Typed constants: no internalerror on failure
Don't check whether the expression queue is empty in the destructor in case
there was an error. Also improved error messages (constant expression instead
of variable expression expected).

Resolves #39393
2021-10-03 21:46:23 +02:00

13 lines
152 B
ObjectPascal

{ %fail }
program project1;
{$mode objfpc}{$H+}
function bug(s: string): string;
var
p:pointer=@s;//internal error 2014062901
begin
end;
begin
end.