Add selftest for diagnostic_get_location_text

Programming / Compilers / GCC - dmalcolm [138bc75d-0d04-0410-961f-82ee72b054a4] - 2 November 2017 20:13 EDT

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.

fd3a7b2d4e9 Add selftest for diagnostic_get_location_text
gcc/ChangeLog | 7 +++++++
gcc/diagnostic.c | 41 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)

Upstream: gcc.gnu.org


  • Share