Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic-partial2a.C
blobe98bdbbc07bf4d2c72c1e574c5e5223aeff1d007
1 // PR c++/102547
2 // { dg-do compile { target c++11 } }
3 // A version of variadic-partial2.C where partial ordering is performed
4 // on function templates instead of class templates.
6 template<int... Vs>
7 struct vals { };
9 template<class V, class T>
10 void f(V, T) { };
12 template<int V0, int V1, class T>
13 void f(vals<V0, V1>, T) { };
15 template<int V0, int V1>
16 void f(vals<V0, V1>, char) { };
18 template void f(vals<1, 2>, char); //- "sorry, unimplemented..., ICE"
20 int main() {
21   f(vals<1, 3>{}, 'a'); //- "sorry, unimplemented..., ICE"