Debian Codegraph @

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

raw
1 // PR c++/80026
2 // { dg-do compile { target c++11 } }
3
4 void g(int) {}
5 void g(bool){}
6
7 template <class...S>
8 void f(S...){}
9
10 int main(){
11 f(&g); // { dg-error "too many arguments" }
12 }