Home | History | Annotate | Download | only in SemaObjCXX
      1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
      2 // expected-no-diagnostics
      3 // PR7386
      4 
      5 @class NSObject;
      6 
      7 class A;
      8 template<class T> class V {};
      9 
     10 @protocol Protocol
     11 - (V<A*>)protocolMethod;
     12 @end
     13 
     14 
     15 @interface I<Protocol>
     16 @end
     17 
     18 
     19 @implementation I
     20 - (void)randomMethod:(id)info {
     21   V<A*> vec([self protocolMethod]);
     22 }
     23 
     24 - (V<A*>)protocolMethod {
     25   V<A*> va; return va;
     26 }
     27 @end
     28