Fariborz Jahanian | 112c330 | 2011-01-04 20:05:20 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -emit-llvm -g %s -o %t |
Fariborz Jahanian | 535a55b | 2010-10-11 23:15:47 +0000 | [diff] [blame] | 2 | // RUN: grep DW_TAG_member %t | count 5 |
Fariborz Jahanian | e09f2e9 | 2010-10-01 21:26:26 +0000 | [diff] [blame] | 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 |