This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR 87339, testsuite] Fix failure of gcc.dg/warn-abs-1.c on some targets
On Wed, 26 Sep 2018, Martin Jambor wrote:
> I see, I guess the easiest is to skip the test on targets that do not
> really have long double, although if someone thinks that is too
> restrictive, I can also split the test again and move long double bits
> to a separate test.
You should be able to use
{ dg-warning "warning regex" "test name" { target { large_long_double } } }
to make the expectation of a warning conditional without making the whole
test conditional.
--
Joseph S. Myers
joseph@codesourcery.com