16 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 %s2 3template<class T> class vector {};4@protocol P @end5 6// expected-no-diagnostics7 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