Galina Kistanova | 0ccb31c | 2011-06-03 22:24:54 +0000 | [diff] [blame] | 1 | // REQUIRES: x86-64-registered-target |
Nick Lewycky | 98a9203 | 2011-10-27 07:11:43 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin10 -fexceptions -fobjc-exceptions -g %s -o - | FileCheck %s |
Rafael Espindola | 1b0c5fa | 2011-04-30 18:47:32 +0000 | [diff] [blame] | 3 | |
Devang Patel | c08c88c | 2012-02-03 23:58:39 +0000 | [diff] [blame] | 4 | // CHECK: {{.*}}, metadata !"-[InstanceVariablesEverywhereButTheInterface someString]", {{.*}}} ; [ DW_TAG_subprogram ] |
Fariborz Jahanian | 1a4c937 | 2010-10-18 17:51:06 +0000 | [diff] [blame] | 5 | |
| 6 | //rdar: //8498026 |
| 7 | |
| 8 | @class NSString; |
| 9 | |
| 10 | @interface InstanceVariablesEverywhereButTheInterface |
| 11 | @end |
| 12 | |
| 13 | @interface InstanceVariablesEverywhereButTheInterface() |
| 14 | { |
| 15 | NSString *_someString; |
| 16 | } |
| 17 | |
| 18 | @property(readonly) NSString *someString; |
| 19 | @property(readonly) unsigned long someNumber; |
| 20 | @end |
| 21 | |
| 22 | @implementation InstanceVariablesEverywhereButTheInterface |
| 23 | { |
| 24 | unsigned long _someNumber; |
| 25 | } |
| 26 | |
| 27 | @synthesize someString = _someString, someNumber = _someNumber; |
| 28 | |
| 29 | - init { |
| 30 | return self; |
| 31 | } |
| 32 | @end |
| 33 | |
| 34 | @interface AutomaticSynthesis |
| 35 | { |
| 36 | int real_ivar; |
| 37 | } |
| 38 | @property(copy) NSString *someString; |
| 39 | @property unsigned long someNumber; |
| 40 | @end |
| 41 | |
| 42 | @implementation AutomaticSynthesis |
Devang Patel | bd82a8f | 2011-05-03 20:22:16 +0000 | [diff] [blame] | 43 | @synthesize someString; |
| 44 | @synthesize someNumber; |
Fariborz Jahanian | 1a4c937 | 2010-10-18 17:51:06 +0000 | [diff] [blame] | 45 | - init |
| 46 | { |
| 47 | return self; |
| 48 | } |
| 49 | @end |
| 50 | |
| 51 | int main() |
| 52 | { |
| 53 | return 0; |
| 54 | } |