2013-12-04 03:41:33 +00:00
|
|
|
// REQUIRES: x86-registered-target
|
2022-12-12 17:01:34 +01:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin10 -fexceptions -fobjc-exceptions -debug-info-kind=limited %s -o - | FileCheck %s
|
2011-04-30 18:47:32 +00:00
|
|
|
|
2015-04-29 16:40:08 +00:00
|
|
|
// CHECK: !DISubprogram(name: "-[InstanceVariablesEverywhereButTheInterface someString]"
|
2010-10-18 17:51:06 +00:00
|
|
|
|
|
|
|
@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-03 20:22:16 +00:00
|
|
|
@synthesize someString;
|
|
|
|
@synthesize someNumber;
|
2010-10-18 17:51:06 +00:00
|
|
|
- init
|
|
|
|
{
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
2022-02-16 16:09:36 -05:00
|
|
|
int main(void)
|
2010-10-18 17:51:06 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|