From: Marek Polacek Date: Wed, 9 Sep 2020 17:49:26 +0000 (-0400) Subject: testsuite: Move auto-96647.C to c++1y/. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=919373a6bfff415db7676c9f92a356ddfc501dfe;p=gcc.git testsuite: Move auto-96647.C to c++1y/. This test uses a C++14 feature so fails with -std=c++11. Therefore I've moved it to cpp1y/ and used target c++14. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/auto-96647.C: Moved to... * g++.dg/cpp1y/auto-96647.C: ...here. Use target c++14. --- diff --git a/gcc/testsuite/g++.dg/cpp0x/auto-96647.C b/gcc/testsuite/g++.dg/cpp0x/auto-96647.C deleted file mode 100644 index 314b2a16ac2..00000000000 --- a/gcc/testsuite/g++.dg/cpp0x/auto-96647.C +++ /dev/null @@ -1,10 +0,0 @@ -// PR c++/96647 -// { dg-do compile { target c++11 } } - -template -struct Base { - auto f(int) { } - auto f(char) { } -}; - -void (Base::*ptr)(int) = &Base::f; diff --git a/gcc/testsuite/g++.dg/cpp1y/auto-96647.C b/gcc/testsuite/g++.dg/cpp1y/auto-96647.C new file mode 100644 index 00000000000..8cbe155415c --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/auto-96647.C @@ -0,0 +1,10 @@ +// PR c++/96647 +// { dg-do compile { target c++14 } } + +template +struct Base { + auto f(int) { } + auto f(char) { } +}; + +void (Base::*ptr)(int) = &Base::f;