| 1 |
// REQUIRES: x86-registered-target |
| 2 |
// RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin10 -fexceptions -fobjc-exceptions -debug-info-kind=limited %s -o - | FileCheck %s |
| 3 |
|
| 4 |
// CHECK: !DISubprogram(name: "-[InstanceVariablesEverywhereButTheInterface someString]" |
| 5 |
|
| 6 |
@class NSString; |
| 7 |
|
| 8 |
@interface InstanceVariablesEverywhereButTheInterface |
| 9 |
@end |
| 10 |
|
| 11 |
@interface InstanceVariablesEverywhereButTheInterface() |
| 12 |
{ |
| 13 |
NSString *_someString; |
| 14 |
} |
| 15 |
|
| 16 |
@property(readonly) NSString *someString; |
| 17 |
@property(readonly) unsigned long someNumber; |
| 18 |
@end |
| 19 |
|
| 20 |
@implementation InstanceVariablesEverywhereButTheInterface |
| 21 |
{ |
| 22 |
unsigned long _someNumber; |
| 23 |
} |
| 24 |
|
| 25 |
@synthesize someString = _someString, someNumber = _someNumber; |
| 26 |
|
| 27 |
- init { |
| 28 |
return self; |
| 29 |
} |
| 30 |
@end |
| 31 |
|
| 32 |
@interface AutomaticSynthesis |
| 33 |
{ |
| 34 |
int real_ivar; |
| 35 |
} |
| 36 |
@property(copy) NSString *someString; |
| 37 |
@property unsigned long someNumber; |
| 38 |
@end |
| 39 |
|
| 40 |
@implementation AutomaticSynthesis |
| 41 |
@synthesize someString; |
| 42 |
@synthesize someNumber; |
| 43 |
- init |
| 44 |
{ |
| 45 |
return self; |
| 46 |
} |
| 47 |
@end |
| 48 |
|
| 49 |
int main(void) |
| 50 |
{ |
| 51 |
return 0; |
| 52 |
} |