1 | // RUN: %clang_cc1 -fobjc-exceptions -fexceptions -std=c++11 -fblocks -fsyntax-only -verify %s |
---|---|
2 | |
3 | template<typename...Types> |
4 | void 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 |