blob: d0598263e50bdb5255a33c28130cfc12bba94f60 (
plain)
1
2
3
4
5
6
7
8
9
|
// RUN: %clang_cc1 -fobjc-exceptions -fexceptions -std=c++11 -fblocks -fsyntax-only -verify %s
template<typename...Types>
void f(Types ...values) {
for (id x in values) { } // expected-error {{expression contains unexpanded parameter pack 'values'}}
@synchronized(values) { // expected-error {{expression contains unexpanded parameter pack 'values'}}
@throw values; // expected-error {{expression contains unexpanded parameter pack 'values'}}
}
}
|