1*67e74705SXin Li// RUN: %clang_cc1 -fsyntax-only -verify %s 2*67e74705SXin Li// rdar://10733000 3*67e74705SXin Li 4*67e74705SXin Li@interface NSObject @end 5*67e74705SXin Li 6*67e74705SXin Li@protocol PLAssetContainer 7*67e74705SXin Li@property (readonly, nonatomic, retain) id assets; 8*67e74705SXin Li@end 9*67e74705SXin Li 10*67e74705SXin Li 11*67e74705SXin Litypedef NSObject <PLAssetContainer> PLAlbum; // expected-note {{previous definition is here}} 12*67e74705SXin Li 13*67e74705SXin Li@class PLAlbum; // expected-warning {{redefinition of forward class 'PLAlbum' of a typedef name of an object type is ignore}} 14*67e74705SXin Li 15*67e74705SXin Li@interface PLPhotoBrowserController 16*67e74705SXin Li{ 17*67e74705SXin Li PLAlbum *_album; 18*67e74705SXin Li} 19*67e74705SXin Li@end 20*67e74705SXin Li 21*67e74705SXin Li@interface WPhotoViewController:PLPhotoBrowserController 22*67e74705SXin Li@end 23*67e74705SXin Li 24*67e74705SXin Li@implementation WPhotoViewController 25*67e74705SXin Li- (void)_prepareForContracting 26*67e74705SXin Li{ 27*67e74705SXin Li (void)_album.assets; 28*67e74705SXin Li} 29*67e74705SXin Li@end 30