c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic-parm1.C
blob4300c781400c54e236ea7f5186faa9a6718e65d5
1 // PR c++/93140
2 // { dg-do compile { target c++11 } }
4 int
5 bar ()
7   return 42;
10 template <typename... R>
11 void foo (R... r, decltype (bar (r...)) x = 0) {}
13 int
14 main ()
16   foo (3);