[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / CodeGenObjC / debug-info-getter-name.m
blobdbdf4dc22fca9d233581dabfe873b67020b2d564
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -triple x86_64-apple-darwin10 -fexceptions -fobjc-exceptions -debug-info-kind=limited %s -o - | FileCheck %s
4 // CHECK:  !DISubprogram(name: "-[InstanceVariablesEverywhereButTheInterface someString]"
6 //rdar: //8498026
8 @class NSString;
10 @interface InstanceVariablesEverywhereButTheInterface 
11 @end
13 @interface InstanceVariablesEverywhereButTheInterface()
15   NSString *_someString;
18 @property(readonly) NSString *someString;
19 @property(readonly) unsigned long someNumber;
20 @end
22 @implementation InstanceVariablesEverywhereButTheInterface
24   unsigned long _someNumber;
27 @synthesize someString = _someString, someNumber = _someNumber;
29 - init {
30   return self;
32 @end
34 @interface AutomaticSynthesis 
36   int real_ivar;
38 @property(copy) NSString *someString;
39 @property unsigned long someNumber;
40 @end
42 @implementation AutomaticSynthesis
43 @synthesize someString;
44 @synthesize someNumber;
45 - init
47   return self;
49 @end
51 int main(void)
53   return 0;