mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
style: simplify tests
* tests/types.at: Simplify C++ instantiations.
This commit is contained in:
@@ -285,7 +285,7 @@ m4_foreach([b4_skel], [[yacc.c], [glr.c], [lalr1.cc], [glr.cc]],
|
||||
[if (res == '1')
|
||||
AT_VAL.build (std::make_pair (10, 11));
|
||||
else if (res == '2')
|
||||
AT_VAL.build (std::make_pair<std::string, std::string> ("two", "deux"));],
|
||||
AT_VAL.build (std::pair<std::string, std::string> ("two", "deux"));],
|
||||
[10:11, two:deux])
|
||||
|
||||
# Move-only types, and variadic emplace.
|
||||
@@ -321,7 +321,7 @@ m4_foreach([b4_skel], [[yacc.c], [glr.c], [lalr1.cc], [glr.cc]],
|
||||
[[if (res == '1')
|
||||
return yy::parser::make_ONE (std::make_unique<int> (10));
|
||||
else if (res == '2')
|
||||
return yy::parser::make_TWO (std::make_pair<int, int> (21, 22));
|
||||
return yy::parser::make_TWO (std::make_pair (21, 22));
|
||||
else
|
||||
return yy::parser::make_EOI ()]],
|
||||
[10, 21, 22],
|
||||
|
||||
Reference in New Issue
Block a user