This is the mail archive of the
mailing list for the GCC project.
tests for GCC internal functions
- From: Martin Sebor <msebor at gmail dot com>
- To: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 16 Aug 2017 08:46:20 -0600
- Subject: tests for GCC internal functions
- Authentication-results: sourceware.org; auth=none
Is there a setup for writing and running as part of the test
suite unit tests that exercise internal GCC functions like
error and warning? I ask because of a couple of bugs that
were recently reported for the %s directive in GCC's
diagnostics (81859 and 81586) that were only caught by running
valgrind on GCC, but that could have been caught by GCC's own
tests for these APIs if they existed.
I can't find any except some in the gcc.dg/plugin directory
(though they weren't written to exercise the functions but
rather the plugin interface). Would adding a plugin for
this sort of thing be the right way to do it?