Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/variadic-parm2.C

raw
1 // PR c++/66519
2 // { dg-do compile { target c++11 } }
3
4 template<typename F, typename... Tp>
5 void a(F f, Tp... args, decltype(f(args...)) = 1) {}
6
7 template<typename F, typename... Tp>
8 void a(F, Tp...) {}
9
10 void b(void) {
11 a([]{});
12 }