]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: lto: fix pr47333 test
authorSam James <sam@gentoo.org>
Fri, 25 Oct 2024 20:12:21 +0000 (21:12 +0100)
committerSam James <sam@gentoo.org>
Fri, 25 Oct 2024 21:10:24 +0000 (22:10 +0100)
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.

gcc/testsuite/g++.dg/lto/pr47333_0.C

index 60873ca07c7a2763224a81c32ea89efabaf96a01..b171c8cb9604a1c998bb24bfb4641560a9bf4fe1 100644 (file)
@@ -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;