Galina Kistanova | 0ccb31c | 2011-06-03 22:24:54 +0000 | [diff] [blame] | 1 | // REQUIRES: x86-64-registered-target |
John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fno-dwarf2-cfi-asm -triple x86_64-apple-darwin10 -fexceptions -fobjc-exceptions -S -g %s -o - | FileCheck %s |
Rafael Espindola | 1b0c5fa | 2011-04-30 18:47:32 +0000 | [diff] [blame] | 3 | |
| 4 | //CHECK: "-[InstanceVariablesEverywhereButTheInterface someString]": |
| 5 | //CHECK: .quad "-[InstanceVariablesEverywhereButTheInterface someString]" |
Rafael Espindola | 1b0c5fa | 2011-04-30 18:47:32 +0000 | [diff] [blame] | 6 | //CHECK: .ascii "-[InstanceVariablesEverywhereButTheInterface someString]" |
| 7 | //CHECK: .asciz "-[InstanceVariablesEverywhereButTheInterface someString]" |
Rafael Espindola | 8d54305 | 2011-05-01 15:45:27 +0000 | [diff] [blame] | 8 | //CHECK: "-[InstanceVariablesEverywhereButTheInterface someString].eh": |
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 |
Devang Patel | bd82a8f | 2011-05-03 20:22:16 +0000 | [diff] [blame] | 47 | @synthesize someString; |
| 48 | @synthesize someNumber; |
Fariborz Jahanian | 1a4c937 | 2010-10-18 17:51:06 +0000 | [diff] [blame] | 49 | - init |
| 50 | { |
| 51 | return self; |
| 52 | } |
| 53 | @end |
| 54 | |
| 55 | int main() |
| 56 | { |
| 57 | return 0; |
| 58 | } |