aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.cc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-10-27 16:44:35 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2024-10-27 16:44:35 +0100
commitc246c4bcb353e8dc30e7e4d45dd27d982a21eab4 (patch)
treea85dac4462be5d7c45af55780539ee11dfef15e9 /gcc/tree-ssa-phiopt.cc
parentad7d5cd65ee35e95b067a14ed882f7beaa94bdf0 (diff)
downloadgcc-c246c4bcb353e8dc30e7e4d45dd27d982a21eab4.zip
gcc-c246c4bcb353e8dc30e7e4d45dd27d982a21eab4.tar.gz
gcc-c246c4bcb353e8dc30e7e4d45dd27d982a21eab4.tar.bz2
genmatch: Add selftests to genmatch for diag_vfprintf
The following patch adds selftests to genmatch to verify the new printing routine there. So that I can rely on HAVE_DECL_FMEMOPEN (host test), the tests are done solely in stage2+ where we link the host libcpp etc. to genmatch. The tests have been adjusted from pretty-print.cc (test_pp_format), and I've added to that function two new tests because I've noticed nothing was testing the %M$.*N$s etc. format specifiers. 2024-10-27 Jakub Jelinek <jakub@redhat.com> * configure.ac (gcc_AC_CHECK_DECLS): Add fmemopen. * configure: Regenerate. * config.in: Regenerate. * Makefile.in (build/genmatch.o): Add -DGENMATCH_SELFTESTS to BUILD_CPPFLAGS for stage2+ genmatch. * genmatch.cc (test_diag_vfprintf, genmatch_diag_selftests): New functions. (main): Call genmatch_diag_selftests. * pretty-print.cc (test_pp_format): Add two tests, one for %M$.*N$s and one for %M$.Ns.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions