aboutsummaryrefslogtreecommitdiff
path: root/gcc/input.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-06-13 20:58:08 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-06-13 20:58:08 +0000
commit755fa6662d06f5ab2f32043bab4728bbf654d29d (patch)
treea014daaa092f85dfc9fc4901e27b06537f61aa15 /gcc/input.c
parenta73786e39ff86e8e1d186baaf802b99f8675bbeb (diff)
downloadgcc-755fa6662d06f5ab2f32043bab4728bbf654d29d.zip
gcc-755fa6662d06f5ab2f32043bab4728bbf654d29d.tar.gz
gcc-755fa6662d06f5ab2f32043bab4728bbf654d29d.tar.bz2
selftest: show values when ASSERT_STREQ fails
Rework ASSERT_STREQ so that it prints the actual and expected values to stderr when it fails (by moving it to a helper function). gcc/ChangeLog: * selftest.c (selftest::fail_formatted): New function. (selftest::assert_streq): New function. * selftest.h (selftests::fail_formatted): New decl. (selftest::assert_streq): New decl. (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq. From-SVN: r237404
Diffstat (limited to 'gcc/input.c')
0 files changed, 0 insertions, 0 deletions