1// 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} 16