aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction89.C
blob: dd89857302211f1170b7bcc5dd57edc6c5e5e70b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/86439
// { dg-do compile { target c++17 } }

struct B { };
struct C { };

template<class T>
struct A {
  A(T, B);
};

template<class T>
A(T, C) -> A<T>;

A a(0, {});