Home | History | Annotate | Download | only in Parser
      1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 %s
      2 
      3 template<class T> class vector {};
      4 @protocol P @end
      5 
      6 // expected-no-diagnostics
      7 
      8 template <typename Functor> void F(Functor functor) {}
      9 
     10 // Test protocol in template within lambda capture initializer context.
     11 void z() {
     12   id<P> x = 0;
     13   (void)x;
     14   F( [ x = vector<id<P>>{} ] {} );
     15 }
     16