local-stack UT

This commit is contained in:
John Kerl 2016-10-18 23:21:17 -04:00
parent 3a58bf3c0a
commit aaa1625ca6
2 changed files with 7 additions and 0 deletions

View file

@ -345,6 +345,11 @@ mlr_dsl_cst_statement_t* mlr_dsl_cst_alloc_statement(mlr_dsl_cst_t* pcst, mlr_ds
return alloc_do_while(pcst, pnode, type_inferencing, context_flags | IN_BREAKABLE);
break;
case MD_AST_NODE_TYPE_FOR_SREC:
if (context_flags & IN_BEGIN_OR_END) {
fprintf(stderr, "%s: statements involving $-variables are not valid within begin or end blocks.\n",
MLR_GLOBALS.bargv0);
exit(1);
}
return alloc_for_srec(pcst, pnode, type_inferencing, context_flags | IN_BREAKABLE);
break;
case MD_AST_NODE_TYPE_FOR_OOSVAR:

View file

@ -74,6 +74,8 @@ UT FOR 5.0.0:
- put them *above* all local/for/UDF/etc
* oosvar-single-for UT
* rtr case for $* in begin/end/func
----------------------------------------------------------------
DOC FOR 5.0.0: