Support __has_attribute for objc_suppress_autosynthesis

which is automatic with proper spelling :).

llvm-svn: 147555
This commit is contained in:
Fariborz Jahanian 2012-01-04 22:29:28 +00:00
parent d2bab35080
commit a28a78ec2f
2 changed files with 3 additions and 1 deletions

View File

@ -525,7 +525,7 @@ def ArcWeakrefUnavailable : InheritableAttr {
}
def ObjCSuppressAutosynthesis : InheritableAttr {
let Spellings = ["objc_suppress_autosynhesis"];
let Spellings = ["objc_suppress_autosynthesis"];
}
def Unused : InheritableAttr {

View File

@ -1,7 +1,9 @@
// RUN: %clang_cc1 -x objective-c -fsyntax-only -fobjc-default-synthesize-properties -verify %s
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -fobjc-default-synthesize-properties -verify %s
#if __has_attribute(objc_suppress_autosynthesis)
__attribute ((objc_suppress_autosynthesis))
#endif
@interface NoAuto
@property int NoAutoProp; // expected-note 2 {{property declared here}}
@end