xref: /minix3/external/bsd/llvm/dist/clang/test/CXX/temp/temp.decls/temp.variadic/p5.mm (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1// RUN: %clang_cc1 -fobjc-exceptions -fexceptions -std=c++11 -fblocks -fsyntax-only -verify %s
2
3template<typename...Types>
4void f(Types ...values) {
5  for (id x in values) { } // expected-error {{expression contains unexpanded parameter pack 'values'}}
6  @synchronized(values) { // expected-error {{expression contains unexpanded parameter pack 'values'}}
7    @throw values; // expected-error {{expression contains unexpanded parameter pack 'values'}}
8  }
9}
10