1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -emit-llvm -g %s -o %t 2 // RUN: grep DW_TAG_member %t | count 5 3 // rdar://8493239 4 5 @class NSString; 6 7 @interface InstanceVariablesEverywhereButTheInterface 8 @end 9 10 @interface InstanceVariablesEverywhereButTheInterface() 11 { 12 NSString *_someString; 13 } 14 15 @property(readonly) NSString *someString; 16 @property(readonly) unsigned long someNumber; 17 @end 18 19 @implementation InstanceVariablesEverywhereButTheInterface 20 { 21 unsigned long _someNumber; 22 } 23 @synthesize someString = _someString, someNumber = _someNumber; 24 @end 25 26 @interface AutomaticSynthesis 27 { 28 int real_ivar; 29 } 30 @property(copy) NSString *someString; 31 @property unsigned long someNumber; 32 @end 33 34 @implementation AutomaticSynthesis 35 @end 36