Rafael Espindola | 1b0c5fa | 2011-04-30 18:47:32 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fno-dwarf2-cfi-asm -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -S -g %s -o - | FileCheck %s |
| 2 | |
| 3 | //CHECK: "-[InstanceVariablesEverywhereButTheInterface someString]": |
| 4 | //CHECK: .quad "-[InstanceVariablesEverywhereButTheInterface someString]" |
| 5 | //CHECK: "-[InstanceVariablesEverywhereButTheInterface someString].eh" = 0 |
| 6 | //CHECK: .no_dead_strip "-[InstanceVariablesEverywhereButTheInterface someString].eh" |
| 7 | //CHECK: .ascii "-[InstanceVariablesEverywhereButTheInterface someString]" |
| 8 | //CHECK: .asciz "-[InstanceVariablesEverywhereButTheInterface someString]" |
Fariborz Jahanian | 1a4c937 | 2010-10-18 17:51:06 +0000 | [diff] [blame] | 9 | |
| 10 | //rdar: //8498026 |
| 11 | |
| 12 | @class NSString; |
| 13 | |
| 14 | @interface InstanceVariablesEverywhereButTheInterface |
| 15 | @end |
| 16 | |
| 17 | @interface InstanceVariablesEverywhereButTheInterface() |
| 18 | { |
| 19 | NSString *_someString; |
| 20 | } |
| 21 | |
| 22 | @property(readonly) NSString *someString; |
| 23 | @property(readonly) unsigned long someNumber; |
| 24 | @end |
| 25 | |
| 26 | @implementation InstanceVariablesEverywhereButTheInterface |
| 27 | { |
| 28 | unsigned long _someNumber; |
| 29 | } |
| 30 | |
| 31 | @synthesize someString = _someString, someNumber = _someNumber; |
| 32 | |
| 33 | - init { |
| 34 | return self; |
| 35 | } |
| 36 | @end |
| 37 | |
| 38 | @interface AutomaticSynthesis |
| 39 | { |
| 40 | int real_ivar; |
| 41 | } |
| 42 | @property(copy) NSString *someString; |
| 43 | @property unsigned long someNumber; |
| 44 | @end |
| 45 | |
| 46 | @implementation AutomaticSynthesis |
| 47 | - init |
| 48 | { |
| 49 | return self; |
| 50 | } |
| 51 | @end |
| 52 | |
| 53 | int main() |
| 54 | { |
| 55 | return 0; |
| 56 | } |