%%
exp: foo { $$; } foo { $2; } foo
| foo
- | /* Empty. */
+ | /* empty. */
;
]])
| foo
^^^
input.y:7.5: warning: empty rule for typed nonterminal, and no action [-Wother]
- | /* Empty. */
+ | /* empty. */
^
]])
AT_DATA_GRAMMAR([input.y],
[[%require "$1";
%%
-empty_file:;
+empty_file: /* empty */;
]])
AT_BISON_CHECK([-o input.c input.y], $2, [], ignore)
AT_CLEANUP
[AT_DATA([[input.y]],
[[$1
%%
-exp:;
+exp: /* empty */;
]])
AT_BISON_CHECK([[$2 input.y]], [[1]], [[]],
[[$3: error: '%name-prefix' and '%define api.prefix' cannot be used together