summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic-ex11.C
blob: 57ef2a3d30e1229bae97ffa5bce86a3bd7d33a43 (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "-std=gnu++0x" }
template<typename... Types> 
  void f(Types... args);

void g() {
  f(); // okay: args contains no arguments
  f(1); // okay: args contains one int argument
  (2, 1.0); // okay: args contains two arguments, an int and a double
}