Debian Codegraph @

clang/test/SemaObjC/forward-class-redeclare.m

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 @interface NSObject @end
4
5 @protocol PLAssetContainer
6 @property (readonly, nonatomic, retain) id assets;
7 @end
8
9
10 typedef 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 PLPhotoBrowserController
15 {
16 PLAlbum *_album;
17 }
18 @end
19
20 @interface WPhotoViewController:PLPhotoBrowserController
21 @end
22
23 @implementation WPhotoViewController
24 - (void)_prepareForContracting
25 {
26 (void)_album.assets;
27 }
28 @end