From: Sam James Date: Fri, 25 Oct 2024 20:12:21 +0000 (+0100) Subject: testsuite: lto: fix pr47333 test X-Git-Tag: basepoints/gcc-16~4865 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2266e38cfd8071262004f164ebe37f60e2d4615d;p=thirdparty%2Fgcc.git testsuite: lto: fix pr47333 test This failure was hidden until we started to run the test by fixing the filename earlier: ignore -Wtemplate-body using a pragma like e.g. g++.dg/lto/20101010-1_0.C does because lto.exp doesn't support dg-additional-options. gcc/testsuite/ChangeLog: PR lto/47333 * g++.dg/lto/pr47333_0.C: Ignore -Wtemplate-body. --- diff --git a/gcc/testsuite/g++.dg/lto/pr47333_0.C b/gcc/testsuite/g++.dg/lto/pr47333_0.C index 60873ca07c7a..b171c8cb9604 100644 --- a/gcc/testsuite/g++.dg/lto/pr47333_0.C +++ b/gcc/testsuite/g++.dg/lto/pr47333_0.C @@ -1,3 +1,6 @@ +/* "WARNING: lto.exp does not support dg-additional-options" */ +#pragma GCC diagnostic ignored "-Wtemplate-body" + namespace std { typedef unsigned int size_t;