mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 10:29:17 +02:00
* New test to catch stack overflow in compiler (#40010)
This commit is contained in:
parent
f00a932cc6
commit
f54917d600
13
tests/webtbf/tw40010.pp
Normal file
13
tests/webtbf/tw40010.pp
Normal 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.
|
Loading…
Reference in New Issue
Block a user