testsuite: Move auto-96647.C to c++1y/.
authorMarek Polacek <polacek@redhat.com>
Wed, 9 Sep 2020 17:49:26 +0000 (13:49 -0400)
committerMarek Polacek <polacek@redhat.com>
Wed, 9 Sep 2020 17:51:18 +0000 (13:51 -0400)
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.

gcc/testsuite/g++.dg/cpp0x/auto-96647.C [deleted file]
gcc/testsuite/g++.dg/cpp1y/auto-96647.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/cpp0x/auto-96647.C b/gcc/testsuite/g++.dg/cpp0x/auto-96647.C
deleted file mode 100644 (file)
index 314b2a1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// PR c++/96647
-// { dg-do compile { target c++11 } }
-
-template<typename>
-struct Base {
-  auto f(int) { }
-  auto f(char) { }
-};
-
-void (Base<void>::*ptr)(int) = &Base<void>::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 (file)
index 0000000..8cbe155
--- /dev/null
@@ -0,0 +1,10 @@
+// PR c++/96647
+// { dg-do compile { target c++14 } }
+
+template<typename>
+struct Base {
+  auto f(int) { }
+  auto f(char) { }
+};
+
+void (Base<void>::*ptr)(int) = &Base<void>::f;