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