This only started being used recently in r15-4683-g04e0fbbc34e101 and pinskia pointed out we may as well make it a proper torture test instead as it's a single file LTO test.
gcc/testsuite/ChangeLog: PR target/47333 * g++.dg/lto/pr47333_0.C: Move to... * g++.dg/torture/pr47333.C: ...here. --- gcc/testsuite/g++.dg/{lto/pr47333_0.C => torture/pr47333.C} | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename gcc/testsuite/g++.dg/{lto/pr47333_0.C => torture/pr47333.C} (99%) diff --git a/gcc/testsuite/g++.dg/lto/pr47333_0.C b/gcc/testsuite/g++.dg/torture/pr47333.C similarity index 99% rename from gcc/testsuite/g++.dg/lto/pr47333_0.C rename to gcc/testsuite/g++.dg/torture/pr47333.C index b171c8cb960..361bd8eac21 100644 --- a/gcc/testsuite/g++.dg/lto/pr47333_0.C +++ b/gcc/testsuite/g++.dg/torture/pr47333.C @@ -1,5 +1,4 @@ -/* "WARNING: lto.exp does not support dg-additional-options" */ -#pragma GCC diagnostic ignored "-Wtemplate-body" +// { dg-additional-options "-Wno-template-body" } namespace std { -- 2.47.0