30 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s2// PR73863 4@class NSObject;5 6class A; // expected-note {{forward declaration of 'A'}}7template<class T> class V { T x; }; // expected-error {{field has incomplete type 'A'}}8 9@protocol Protocol10- (V<A*>)protocolMethod;11- (V<A>)method2;12@end13 14 15@interface I<Protocol>16@end17 18 19@implementation I20- (void)randomMethod:(id)info {21 V<A*> vec([self protocolMethod]);22}23 24- (V<A*>)protocolMethod {25 V<A*> va; return va;26}27- (V<A>)method2 { // expected-note {{in instantiation of}}28}29@end30