brintos

brintos / llvm-project-archived public Read only

0
0
Text · 655 B · 7e8ff56 Raw
19 lines · plain
1// RUN: %clang_cc1  -fsyntax-only -triple x86_64-apple-macosx10.11 -verify -Wno-objc-root-class %s2// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -triple x86_64-apple-macosx10.11 -verify -Wno-objc-root-class %s3// expected-no-diagnostics4 5@protocol NSFileManagerDelegate @end6 7@interface NSFileManager 8@property (assign) id <NSFileManagerDelegate> delegate;9@end10 11@interface NSFontManager12@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.")));13 14@end15 16id Test20408445(id p) {17        return [p delegate];18}19