1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc// expected-no-diagnostics 3*f4a2713aSLionel Sambuc// radar 7682116 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc@interface Super @end 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc@interface NSArray : Super @end 8*f4a2713aSLionel Sambuc@interface NSSet : Super @end 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc@protocol MyProtocol 11*f4a2713aSLionel Sambuc- (void)myMethod; 12*f4a2713aSLionel Sambuc@end 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc@protocol MyProtocol2 <MyProtocol> 15*f4a2713aSLionel Sambuc- (void)myMethod2; 16*f4a2713aSLionel Sambuc@end 17*f4a2713aSLionel Sambuc 18*f4a2713aSLionel Sambuc@interface NSArray() <MyProtocol2> 19*f4a2713aSLionel Sambuc@end 20*f4a2713aSLionel Sambuc 21*f4a2713aSLionel Sambuc@interface NSSet() <MyProtocol> 22*f4a2713aSLionel Sambuc@end 23*f4a2713aSLionel Sambuc 24*f4a2713aSLionel Sambucint main (int argc, const char * argv[]) { 25*f4a2713aSLionel Sambuc NSArray *array = (void*)0; 26*f4a2713aSLionel Sambuc NSSet *set = (void*)0; 27*f4a2713aSLionel Sambuc id <MyProtocol> instance = (argc) ? array : set; 28*f4a2713aSLionel Sambuc instance = (void*)0; 29*f4a2713aSLionel Sambuc return 0; 30*f4a2713aSLionel Sambuc} 31*f4a2713aSLionel Sambuc 32