summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/concepts/auto6.C
blob: 1f6d72e54ccf0c364c2d24c02eda0c79a8516bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/101886
// { dg-do compile { target c++17_only } }
// { dg-options "-fconcepts-ts" }

template<typename, typename> struct A { };

template<class T>
void f() {
  A<int, int> a;
  A<auto, auto> b1 = a;
  A<auto, auto> b2 = a;
}

template void f<int>();