Add selftest for pretty-print.c
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 8 Jun 2016 15:53:56 +0000 (15:53 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 8 Jun 2016 15:53:56 +0000 (15:53 +0000)
commit4ccab56d73fd6be31e3d543da7fed3ad3e654cfa
tree303bf1ee5663cffd001834088e35aabf734a8172
parent568876dc709a2ee474d321c0f36eb81684cc5b9b
Add selftest for pretty-print.c

gcc/ChangeLog:
* pretty-print.c: Include "selftest.h".
(pp_format): Fix comment.
(identifier_to_locale): Likewise.
(selftest::test_basic_printing): New function.
(selftest::assert_pp_format): New function.
(selftest::test_pp_format): New function.
(selftest::pretty_print_c_tests): New function.
* selftest-run-tests.c (selftest::run_tests): Call
selftest::pretty_print_c_tests.
* selftest.h (pretty_print_c_tests): New declaration.

From-SVN: r237221
gcc/ChangeLog
gcc/pretty-print.c
gcc/selftest-run-tests.c
gcc/selftest.h