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