Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr78649.C

raw
1 // PR c++/78649
2 // { dg-do compile { target c++11 } }
3
4 template <class> void foo ();
5 template <class T, class... U>
6 void
7 test ()
8 {
9 T t (foo<U>...); // { dg-error "declared void" }
10 }
11
12 int
13 main ()
14 {
15 test<void> ();
16 }