aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction7.C
blob: ab96774d5e9ca95f277bb3348fb5b8c433f13870 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile { target c++17 } }

template <class T>
struct A
{
  int i;
};

template <class T>
A(T);			       // { dg-error "must have trailing return type" }