blob: 02d6b2c3191b39d4808bc38b933cc6d7e8c89951 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// { dg-do run }
// Test that we can deduce t even though T is deduced from a later argument.
template <int I> struct A { };
template <class T, T t> void f (A<t> &, T) { }
int main ()
{
A<42> a;
f (a, 24);
}
|