On Tue, Oct 27, 2020 at 07:38:53AM +0100, Aldy Hernandez via Gcc-patches wrote: > This was already fixed by the patch for PR97520, but it can't hurt to > keep this test around as well :).
Small tweaks for that. Note, it would be better to put such tests into g++.dg/opt/, g++.dg/ itself shouldn't really have any tests directly. 2020-10-27 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/97560 PR testsuite/97590 * g++.dg/pr97560.C: Require c++11 effective target and add comment with PR number. diff --git a/gcc/testsuite/g++.dg/pr97560.C b/gcc/testsuite/g++.dg/pr97560.C index f9e7edfcaf9..59313f972df 100644 --- a/gcc/testsuite/g++.dg/pr97560.C +++ b/gcc/testsuite/g++.dg/pr97560.C @@ -1,4 +1,5 @@ -// { dg-do compile } +// PR tree-optimization/97560 +// { dg-do compile { target c++11 } } // { dg-options "-O2 -fno-tree-forwprop -fnon-call-exceptions" } template <typename> Jakub