]> git.ipfire.org Git - thirdparty/gcc.git/commit
pretty-print: add selftest of pp_format's stack
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 3 Sep 2024 19:11:01 +0000 (15:11 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 3 Sep 2024 19:11:01 +0000 (15:11 -0400)
commitd0891f3aa75d31744de728905f2f454e9d07ce54
tree5bdad2d4b131ae54248c1523c657c1719160ff53
parent34f01475611b422668a70744c79273c7019625f2
pretty-print: add selftest of pp_format's stack

gcc/ChangeLog:
* pretty-print-format-impl.h (pp_formatted_chunks::get_prev): New
accessor.
* pretty-print.cc (selftest::push_pp_format): New.
(ASSERT_TEXT_TOKEN): New macro.
(selftest::test_pp_format_stack): New test.
(selftest::pretty_print_cc_tests): New.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/pretty-print-format-impl.h
gcc/pretty-print.cc