input.c: move test functions within #CHECKING_P and into selftest::
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 18 Aug 2016 00:13:26 +0000 (00:13 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 18 Aug 2016 00:13:26 +0000 (00:13 +0000)
commit0e06d2b3f7ba8b70239995de3630bc06b8b5f183
tree22b9ace76a1c76297607199f1f111d0c3bb9a33e
parent66592e95db41216e6fb1d76a831f8efa6bcf0d6f
input.c: move test functions within #CHECKING_P and into selftest::

gcc/ChangeLog:
* input.c (get_source_range_for_char): Rename to...
(selftest::get_source_range_for_char): ...this, and move within
the #if CHECKING_P guard.
(get_num_source_ranges_for_substring): Rename to...
(selftest::get_num_source_ranges_for_substring): ...this, move
within the #if CHECKING_P guard, and make static.
(selftest::assert_num_substring_ranges): Initialize
actual_num_ranges.

From-SVN: r239550
gcc/ChangeLog
gcc/input.c