summaryrefslogtreecommitdiff
path: root/tests/skeletons.at
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2013-01-15 18:29:45 +0100
committerAkim Demaille <akim@lrde.epita.fr>2013-01-21 16:27:46 +0100
commit3ef9fa8f83316f7955babee666546feb5d9bdefc (patch)
tree02c394f4d2ba155b9944db1aa34abd7a97f25247 /tests/skeletons.at
parent70b7c357476ed3525ddb5d2739e70690cfebb207 (diff)
downloadbison-3ef9fa8f83316f7955babee666546feb5d9bdefc.tar.gz
tests: factor the definition of main
With Théophile Ranquet. * tests/local.at (AT_MAIN_DEFINE): New. (AT_YYERROR_DEFINE): Improve formatting. * tests/actions.at, tests/c++.at, tests/conflicts.at, * tests/glr-regression.at, tests/input.at, tests/regression.at, * tests/skeletons.at, tests/torture.at: Adjust. * tests/c++.at: Add missing %skeleton for a PUSHDEFS, and a missing PUSH/POPDEFS for another test.
Diffstat (limited to 'tests/skeletons.at')
-rw-r--r--tests/skeletons.at7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/skeletons.at b/tests/skeletons.at
index aaa30834..68a004ec 100644
--- a/tests/skeletons.at
+++ b/tests/skeletons.at
@@ -106,12 +106,7 @@ yylex (void)
{
return 'a';
}
-
-int
-main (void)
-{
- return yyparse ();
-}
+]AT_MAIN_DEFINE[
]])
AT_DATA_GRAMMAR([[input-cmd-line.y]],