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

template<typename... Types> 
  void g(Types... rest) {
    f(&rest...); // ``&rest...'' is a pack expansion, ``&rest'' is its pattern
  }