blob: 36da92e251f4c5a762c917d0596af19220466702 [file] [log] [blame]
Bruno Cardoso Lopesfb9b6cd2016-02-05 19:36:39 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 %s
2
3template<class T> class vector {};
4@protocol P @end
5
6// expected-no-diagnostics
7
8template <typename Functor> void F(Functor functor) {}
9
10// Test protocol in template within lambda capture initializer context.
11void z() {
12 id<P> x = 0;
13 (void)x;
14 F( [ x = vector<id<P>>{} ] {} );
15}