2013-12-04 11:41:33 +08:00
|
|
|
// REQUIRES: x86-registered-target
|
2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin10 -fexceptions -fobjc-exceptions -debug-info-kind=limited %s -o - | FileCheck %s
|
2011-05-01 02:47:32 +08:00
|
|
|
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DISubprogram(name: "-[InstanceVariablesEverywhereButTheInterface someString]"
|
2010-10-19 01:51:06 +08:00
|
|
|
|
|
|
|
//rdar: //8498026
|
|
|
|
|
|
|
|
@class NSString;
|
|
|
|
|
|
|
|
@interface InstanceVariablesEverywhereButTheInterface
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface InstanceVariablesEverywhereButTheInterface()
|
|
|
|
{
|
|
|
|
NSString *_someString;
|
|
|
|
}
|
|
|
|
|
|
|
|
@property(readonly) NSString *someString;
|
|
|
|
@property(readonly) unsigned long someNumber;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation InstanceVariablesEverywhereButTheInterface
|
|
|
|
{
|
|
|
|
unsigned long _someNumber;
|
|
|
|
}
|
|
|
|
|
|
|
|
@synthesize someString = _someString, someNumber = _someNumber;
|
|
|
|
|
|
|
|
- init {
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface AutomaticSynthesis
|
|
|
|
{
|
|
|
|
int real_ivar;
|
|
|
|
}
|
|
|
|
@property(copy) NSString *someString;
|
|
|
|
@property unsigned long someNumber;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation AutomaticSynthesis
|
2011-05-04 04:22:16 +08:00
|
|
|
@synthesize someString;
|
|
|
|
@synthesize someNumber;
|
2010-10-19 01:51:06 +08:00
|
|
|
- init
|
|
|
|
{
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|