You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
674 B
20 lines
674 B
4 months ago
|
// RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-macosx10.11 -verify -Wno-objc-root-class %s
|
||
|
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -triple x86_64-apple-macosx10.11 -verify -Wno-objc-root-class %s
|
||
|
// expected-no-diagnostics
|
||
|
// rdar://20408445
|
||
|
|
||
|
@protocol NSFileManagerDelegate @end
|
||
|
|
||
|
@interface NSFileManager
|
||
|
@property (assign) id <NSFileManagerDelegate> delegate;
|
||
|
@end
|
||
|
|
||
|
@interface NSFontManager
|
||
|
@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.")));
|
||
|
|
||
|
@end
|
||
|
|
||
|
id Test20408445(id p) {
|
||
|
return [p delegate];
|
||
|
}
|