Add selftest for diagnostic_get_location_text
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 2 Nov 2017 20:13:18 +0000 (20:13 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 2 Nov 2017 20:13:18 +0000 (20:13 +0000)
commitace725989eef16efea050619597f5c7f71667e1d
tree0fcf51848d421799ddb04ca6eab844a355620a32
parentba7bfd9f049d00f41be1240adebf27e13bcac261
Add selftest for diagnostic_get_location_text

gcc/ChangeLog:
* diagnostic.c: Include "selftest-diagnostic.h".
(selftest::assert_location_text): New function.
(selftest::test_diagnostic_get_location_text): New function.
(selftest::diagnostic_c_tests): Call it.

From-SVN: r254355
gcc/ChangeLog
gcc/diagnostic.c