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

#include <initializer_list>

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

template<typename T>
A(std::initializer_list<T>) -> A<T>;

A a{1,2,3};
using type = decltype(a);
using type = A<int>;