* New test to catch stack overflow in compiler (#40010)

This commit is contained in:
J. Gareth "Curious Kit" Moreton 2022-12-03 19:56:05 +00:00
parent f00a932cc6
commit f54917d600

13
tests/webtbf/tw40010.pp Normal file
View File

@ -0,0 +1,13 @@
{ %FAIL }
program tw40010;
type
PA_Node = ^TA_Node;
TA_Node = array[0..3] of PA_Node;
var n1,n2:PA_Node;
begin
n2 := nil;
n1[3] := n2; { Should fail with a syntax error, not not cause a stack overflow }
end.