PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / canon-type-12.C
blobf2467fa174764466ea35e424101e8c1d05769086
1 // { dg-do compile { target c++11 } }
3 template<class T, T t = (T)0>
4 struct S
6   void
7   foo(decltype(t) = t);
8 };
10 template<class T, T t>
11 void
12 S<T, t>::foo(decltype(t))
16 void
17 bar()
19   S<int> s;
20   s.foo();