1*67e74705SXin Li// RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-macosx10.11 -verify -Wno-objc-root-class %s 2*67e74705SXin Li// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -triple x86_64-apple-macosx10.11 -verify -Wno-objc-root-class %s 3*67e74705SXin Li// expected-no-diagnostics 4*67e74705SXin Li// rdar://20408445 5*67e74705SXin Li 6*67e74705SXin Li@protocol NSFileManagerDelegate @end 7*67e74705SXin Li 8*67e74705SXin Li@interface NSFileManager 9*67e74705SXin Li@property (assign) id <NSFileManagerDelegate> delegate; 10*67e74705SXin Li@end 11*67e74705SXin Li 12*67e74705SXin Li@interface NSFontManager 13*67e74705SXin Li@property (assign) id delegate __attribute__((availability(macosx,introduced=10.0 ,deprecated=10.11,message="" "NSFontManager doesn't have any delegate method. This property should not be used."))); 14*67e74705SXin Li 15*67e74705SXin Li@end 16*67e74705SXin Li 17*67e74705SXin Liid Test20408445(id p) { 18*67e74705SXin Li return [p delegate]; 19*67e74705SXin Li} 20