re PR c++/80026 ([pending testcase installation] passing unresolved function pointer...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 4 Apr 2018 19:57:33 +0000 (19:57 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 4 Apr 2018 19:57:33 +0000 (19:57 +0000)
2018-04-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/80026
* g++.dg/cpp0x/variadic174.C: New.

From-SVN: r259105

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

index fe56c9d6804e2258bbe646ba088377e758b9d73d..33abe91ede8dd7e4c5bd9a3c45fd16632bde4387 100644 (file)
@@ -1,3 +1,8 @@
+2018-04-04  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/80026
+       * g++.dg/cpp0x/variadic174.C: New.
+
 2018-04-04  Jakub Jelinek  <jakub@redhat.com>
 
        PR inline-asm/85172
diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic174.C b/gcc/testsuite/g++.dg/cpp0x/variadic174.C
new file mode 100644 (file)
index 0000000..36b7667
--- /dev/null
@@ -0,0 +1,12 @@
+// PR c++/80026
+// { dg-do compile { target c++11 } }
+
+void g(int) {}
+void g(bool){}
+
+template <class...S>
+void f(S...){}
+
+int main(){
+  f(&g);  // { dg-error "too many arguments" }
+}