* tests/actions.at: Test that stack overflow invokes destructors.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 May 2005 04:52:33 +0000 (04:52 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 May 2005 04:52:33 +0000 (04:52 +0000)
commit80ce3401e9d2d2e41a94ad8b57134dc1e3c998f5
tree552fd766ac683399b7e903d1de89b0b6329b9af5
parentb9c9f761976f3d842b688054c91944a1915a4722
* tests/actions.at: Test that stack overflow invokes destructors.
From Marcus Holland-Moritz.
* data/yacc.c (yyerrlab): Move the code that destroys the stack
from here....
(yyreturn): to here.  That way, destructors are called properly
even if the stack overflows, or the user calls YYACCEPT or
YYABORT.  Stack-overflow problem reported by Marcus Holland-Moritz.
(yyoverflowlab): Destroy the lookahead.
ChangeLog
data/yacc.c
tests/actions.at