aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Basic/Attr.td2
-rw-r--r--test/SemaObjC/default-synthesize-3.m2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Basic/Attr.td b/include/clang/Basic/Attr.td
index bf9a6ce147..0302c5e3fd 100644
--- a/include/clang/Basic/Attr.td
+++ b/include/clang/Basic/Attr.td
@@ -525,7 +525,7 @@ def ArcWeakrefUnavailable : InheritableAttr {
}
def ObjCSuppressAutosynthesis : InheritableAttr {
- let Spellings = ["objc_suppress_autosynhesis"];
+ let Spellings = ["objc_suppress_autosynthesis"];
}
def Unused : InheritableAttr {
diff --git a/test/SemaObjC/default-synthesize-3.m b/test/SemaObjC/default-synthesize-3.m
index 20e7dd28f2..8616404028 100644
--- a/test/SemaObjC/default-synthesize-3.m
+++ b/test/SemaObjC/default-synthesize-3.m
@@ -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