On Tue, Oct 27, 2020 at 3:10 PM Jakub Jelinek <ja...@redhat.com> wrote: > > 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
thanks. > g++.dg/opt/, g++.dg/ itself shouldn't really have any tests directly. Wait, what? I've always put them into g++.dg. And it looks like that directory is chock-full of PRxxxx.C files. When did we change to opt/? How about gcc.dg? I don't see an opt/ directory there. Anyways, will do from now on. Thanks. Aldy > > 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 >