gmqcc/tests/parent_block_scope_for_locals.tmpl
Dale Weiler 465941f357 pass parent scope to parse_statement_or_block
previous behavior when parsing a statement where a block is typically expected would fail to associate the statement with the parent block it's in, resulting in variable declarations ending up in global scope.

this fixes #197
2021-03-02 10:46:05 -05:00

5 lines
134 B
Cheetah

I: parent_block_scope_for_locals.qc
D: when omitting braces ensure locals end up in parent block
T: -execute
C: -std=fteqcc
M: 012012