brintos

brintos / llvm-project-archived public Read only

0
0
Text · 993 B · 6ee113b Raw
53 lines · plain
1// REQUIRES: x86-registered-target2// RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin10 -fexceptions -fobjc-exceptions -debug-info-kind=limited %s -o - | FileCheck %s3 4// CHECK:  !DISubprogram(name: "-[InstanceVariablesEverywhereButTheInterface someString]"5 6@class NSString;7 8@interface InstanceVariablesEverywhereButTheInterface 9@end10 11@interface InstanceVariablesEverywhereButTheInterface()12{13  NSString *_someString;14}15 16@property(readonly) NSString *someString;17@property(readonly) unsigned long someNumber;18@end19 20@implementation InstanceVariablesEverywhereButTheInterface21{22  unsigned long _someNumber;23}24 25@synthesize someString = _someString, someNumber = _someNumber;26 27- init {28  return self;29}30@end31 32@interface AutomaticSynthesis 33{34  int real_ivar;35}36@property(copy) NSString *someString;37@property unsigned long someNumber;38@end39 40@implementation AutomaticSynthesis41@synthesize someString;42@synthesize someNumber;43- init44{45  return self;46}47@end48 49int main(void)50{51  return 0;52}53