29 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3@interface NSObject @end4 5@protocol PLAssetContainer6@property (readonly, nonatomic, retain) id assets;7@end8 9 10typedef NSObject <PLAssetContainer> PLAlbum; // expected-note {{previous definition is here}}11 12@class PLAlbum; // expected-warning {{redefinition of forward class 'PLAlbum' of a typedef name of an object type is ignore}}13 14@interface PLPhotoBrowserController15{16 PLAlbum *_album;17}18@end19 20@interface WPhotoViewController:PLPhotoBrowserController21@end22 23@implementation WPhotoViewController24- (void)_prepareForContracting25{26 (void)_album.assets;27}28@end29