allow test node after ** in calls (closes #24176)

This commit is contained in:
Benjamin Peterson 2015-05-16 09:44:45 -04:00
parent 8de32d906f
commit de12b79cd6
4 changed files with 7 additions and 10 deletions

View file

@ -2871,7 +2871,7 @@ validate_argument(node *tree)
if (res) {
if (TYPE(CHILD(tree, 0)) == DOUBLESTAR) {
res = validate_expr(CHILD(tree, 1));
res = validate_test(CHILD(tree, 1));
}
else if (nch == 1) {
res = validate_test_or_star_expr(CHILD(tree, 0));