Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1  -fobjc-default-synthesize-properties  -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s
      2 // RUN: %clang_cc1  -x objective-c++ -fobjc-default-synthesize-properties  -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s
      3 // expected-no-diagnostics
      4 // rdar:// 10558871
      5 
      6 @interface PP
      7 @property (readonly) id ReadOnlyPropertyNoBackingIvar;
      8 @property (readonly) id ReadOnlyProperty;
      9 @property (readonly) id ReadOnlyPropertyX;
     10 @end
     11 
     12 @implementation PP {
     13 __weak id _ReadOnlyProperty;
     14 }
     15 @synthesize ReadOnlyPropertyNoBackingIvar;
     16 @synthesize ReadOnlyProperty = _ReadOnlyProperty;
     17 @synthesize ReadOnlyPropertyX = _ReadOnlyPropertyX;
     18 @end
     19 
     20 @interface DD
     21 @property (readonly) id ReadOnlyProperty;
     22 @property (readonly) id ReadOnlyPropertyStrong;
     23 @property (readonly) id ReadOnlyPropertyNoBackingIvar;
     24 @end
     25 
     26 @implementation DD {
     27 __weak id _ReadOnlyProperty;
     28 __strong id _ReadOnlyPropertyStrong;
     29 }
     30 @end
     31