2 // { dg-do compile { target c++11 } }
4 template<class... Ts> struct tuple { };
8 template<class... argTs>
9 int operator()(argTs...);
12 template<class...> struct test;
14 template<template <class...> class tp,
15 class... arg1Ts, class... arg2Ts>
16 struct test<tp<arg1Ts...>, tp<arg2Ts...>>
18 template<class func, class...arg3Ts>
19 auto test2(func fun, arg1Ts... arg1s, arg3Ts... arg3s)
20 -> decltype(fun(arg1s..., arg3s...));
25 test<tuple<>, tuple<char,int>> t2;
26 t2.test2(funct(), 'a', 2);