• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1  -fsyntax-only -triple x86_64-apple-macosx10.11 -verify -Wno-objc-root-class %s
2// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -triple x86_64-apple-macosx10.11 -verify -Wno-objc-root-class %s
3// expected-no-diagnostics
4// rdar://20408445
5
6@protocol NSFileManagerDelegate @end
7
8@interface NSFileManager
9@property (assign) id <NSFileManagerDelegate> delegate;
10@end
11
12@interface NSFontManager
13@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
15@end
16
17id Test20408445(id p) {
18        return [p delegate];
19}
20