Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjC / forward-class-redeclare.m
blob50e9c4f9313a20837e094e38977a60990a91cceb
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 @interface NSObject @end
5 @protocol PLAssetContainer
6 @property (readonly, nonatomic, retain) id assets;
7 @end
10 typedef NSObject <PLAssetContainer> PLAlbum; // expected-note {{previous definition is here}}
12 @class PLAlbum; // expected-warning {{redefinition of forward class 'PLAlbum' of a typedef name of an object type is ignore}}
14 @interface PLPhotoBrowserController
16     PLAlbum *_album;
18 @end
20 @interface WPhotoViewController:PLPhotoBrowserController
21 @end
23 @implementation WPhotoViewController
24 - (void)_prepareForContracting
26   (void)_album.assets;
28 @end