summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic174.C
blob: 36b76675da32fd1ecb97e082d4728c4a8008f598 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/80026
// { dg-do compile { target c++11 } }

void g(int) {}
void g(bool){}

template <class...S>
void f(S...){}

int main(){
  f(&g);  // { dg-error "too many arguments" }
}