Added testcase for 58533, fixed by rev 204714.
authorAdam Butcher <adam@jessamine.co.uk>
Thu, 14 Nov 2013 08:26:21 +0000 (08:26 +0000)
committerAdam Butcher <abutcher@gcc.gnu.org>
Thu, 14 Nov 2013 08:26:21 +0000 (08:26 +0000)
gcc/testsuite/
PR c++/58533
* g++.dg/cpp1y/pr58533.C: New testcase (fixed by r204714).

From-SVN: r204776

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr58533.C [new file with mode: 0644]

index fffa0442067b76d1f1ef5f4d03755958300b8db9..ec8d2485acc396c470fcd1e41581d8e50679bea3 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-14  Adam Butcher  <adam@jessamine.co.uk>
+
+       PR c++/58533
+       * g++.dg/cpp1y/pr58533.C: New testcase (fixed by r204714).
+
 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/59101
diff --git a/gcc/testsuite/g++.dg/cpp1y/pr58533.C b/gcc/testsuite/g++.dg/cpp1y/pr58533.C
new file mode 100644 (file)
index 0000000..e1855d7
--- /dev/null
@@ -0,0 +1,7 @@
+// PR c++/58533
+// { dg-options "-std=gnu++1y" }
+
+void foo()
+{
+  void (*fp)(auto); // { dg-error "template" }
+}