]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/pr69056.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr69056.C
CommitLineData
ab4bae0c
PP
1// { dg-do compile { target c++11 } }
2// PR c++/69056
3
4template <typename T, typename... Args>
5void resolver(int (*) (T, Args...));
6
7int funcA(int, float) { return 0; }
8int funcA(double) { return 0; }
9
10int funcB(int, float, char) { return 0; }
11int funcB(int, bool) { return 0; }
12int funcB(double) { return 0; }
13
14int funcC(int) { return 0; }
15int funcC(double) { return 0; }
16
17void
18foo (void)
19{
20 resolver (&funcA); // { dg-error "no match" }
21 resolver<int> (&funcA);
22 resolver<double> (&funcA);
23
24 resolver<int> (&funcB); // { dg-error "no match" }
25 resolver<int, char> (&funcB); // { dg-error "no match" }
26 resolver<int, float> (&funcB);
27
28 resolver<int> (&funcC);
29 resolver<int, float> (&funcC); // { dg-error "no match" }
30}
This page took 2.817759 seconds and 5 git commands to generate.