1 // RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi2 -verify %s
9 @interface SynthItAll : NSObject
10 @property int howMany;
11 @property (retain) NSString* what;
14 @implementation SynthItAll
15 //@synthesize howMany, what;
19 @interface SynthSetter : NSObject
20 @property (nonatomic) int howMany; // REM: nonatomic to avoid warnings about only implementing one of the pair
21 @property (nonatomic, retain) NSString* what;
24 @implementation SynthSetter
25 //@synthesize howMany, what;
30 // - (void) setHowMany: (int) value
35 // - (void) setWhat: (NSString*) value
39 @interface SynthGetter : NSObject
40 @property (nonatomic) int howMany; // REM: nonatomic to avoid warnings about only implementing one of the pair
41 @property (nonatomic, retain) NSString* what;
44 @implementation SynthGetter
45 //@synthesize howMany, what;
48 - (void) setHowMany: (int) value {
53 - (void) setWhat: (NSString*) value {
56 what = [value retain];
62 @interface SynthNone : NSObject
63 @property int howMany;
64 @property (retain) NSString* what;
67 @implementation SynthNone
68 //@synthesize howMany, what; // REM: Redundant anyway
73 - (void) setHowMany: (int) value {
80 - (void) setWhat: (NSString*) value {
83 what = [value retain];
89 // No default synthesis if implementation has getter (readonly) and setter(readwrite) methods.
90 @interface DSATextSearchResult
91 @property(assign,readonly) float relevance;
92 @property(assign,readonly) char isTitleMatch;
95 @interface DSANodeSearchResult : DSATextSearchResult {}
99 @implementation DSATextSearchResult
100 -(char)isTitleMatch {
109 @implementation DSANodeSearchResult
110 -(id)initWithNode:(id )node relevance:(float)relevance isTitleMatch:(char)isTitleMatch {