mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
tests: more logs.
* tests/headers.at (Several parsers): Here.
This commit is contained in:
@@ -166,7 +166,8 @@ AT_BISON_OPTION_POPDEFS
|
|||||||
])
|
])
|
||||||
|
|
||||||
AT_DATA([main.cc],
|
AT_DATA([main.cc],
|
||||||
[[extern "C"
|
[[#define ECHO(S) std::cerr << #S": " << S << std::endl;
|
||||||
|
extern "C"
|
||||||
{
|
{
|
||||||
#include "x1.h"
|
#include "x1.h"
|
||||||
#include "x2.h"
|
#include "x2.h"
|
||||||
@@ -175,18 +176,18 @@ AT_DATA([main.cc],
|
|||||||
}
|
}
|
||||||
#include "x5.hh"
|
#include "x5.hh"
|
||||||
//#include "x6.hh"
|
//#include "x6.hh"
|
||||||
|
|
||||||
int
|
int
|
||||||
main (void)
|
main (void)
|
||||||
{
|
{
|
||||||
int errs = 0;
|
ECHO(x1_parse());
|
||||||
errs += x1_parse();
|
ECHO(x2_parse());
|
||||||
errs += x2_parse();
|
ECHO(x3_parse());
|
||||||
errs += x3_parse();
|
ECHO(x4_parse());
|
||||||
errs += x4_parse();
|
|
||||||
x5_::parser p5;
|
x5_::parser p5;
|
||||||
errs += p5.parse();
|
ECHO(p5.parse());
|
||||||
// errs += x6_parse();
|
// ECHO(x6_parse());
|
||||||
return !!errs;
|
return 0;
|
||||||
}
|
}
|
||||||
]])
|
]])
|
||||||
|
|
||||||
@@ -204,6 +205,12 @@ x2
|
|||||||
x3
|
x3
|
||||||
x4
|
x4
|
||||||
x5
|
x5
|
||||||
|
]],
|
||||||
|
[[x1_parse(): 0
|
||||||
|
x2_parse(): 0
|
||||||
|
x3_parse(): 0
|
||||||
|
x4_parse(): 0
|
||||||
|
p5.parse(): 0
|
||||||
]])
|
]])
|
||||||
|
|
||||||
AT_CLEANUP
|
AT_CLEANUP
|
||||||
|
|||||||
Reference in New Issue
Block a user