1*67e74705SXin Li// RUN: %clang_cc1 -emit-llvm -o %t %s 2*67e74705SXin Li 3*67e74705SXin Li@interface BaseClass { 4*67e74705SXin Li id _delegate; 5*67e74705SXin Li} 6*67e74705SXin Li@end 7*67e74705SXin Li 8*67e74705SXin Li@protocol MyProtocol 9*67e74705SXin Li@optional 10*67e74705SXin Li@property(assign) id delegate; 11*67e74705SXin Li@end 12*67e74705SXin Li 13*67e74705SXin Li@protocol AnotherProtocol 14*67e74705SXin Li@optional 15*67e74705SXin Li@property(assign) id myanother; 16*67e74705SXin Li@end 17*67e74705SXin Li 18*67e74705SXin Li@protocol SubProtocol <MyProtocol> 19*67e74705SXin Li@property(assign) id another; 20*67e74705SXin Li@end 21*67e74705SXin Li 22*67e74705SXin Li@interface SubClass : BaseClass <SubProtocol, AnotherProtocol> { 23*67e74705SXin Li} 24*67e74705SXin Li 25*67e74705SXin Li@end 26*67e74705SXin Li 27*67e74705SXin Li@implementation BaseClass @end 28*67e74705SXin Li 29*67e74705SXin Li@implementation SubClass 30*67e74705SXin Li@synthesize delegate = _Subdelegate; 31*67e74705SXin Li@synthesize another; 32*67e74705SXin Li@synthesize myanother; 33*67e74705SXin Li@end 34