Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenObjC / debug-info-getter-name.m
blob6ee113b41403f8fe49f3bf596543a29064aa539b
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
4 // CHECK:  !DISubprogram(name: "-[InstanceVariablesEverywhereButTheInterface someString]"
6 @class NSString;
8 @interface InstanceVariablesEverywhereButTheInterface 
9 @end
11 @interface InstanceVariablesEverywhereButTheInterface()
13   NSString *_someString;
16 @property(readonly) NSString *someString;
17 @property(readonly) unsigned long someNumber;
18 @end
20 @implementation InstanceVariablesEverywhereButTheInterface
22   unsigned long _someNumber;
25 @synthesize someString = _someString, someNumber = _someNumber;
27 - init {
28   return self;
30 @end
32 @interface AutomaticSynthesis 
34   int real_ivar;
36 @property(copy) NSString *someString;
37 @property unsigned long someNumber;
38 @end
40 @implementation AutomaticSynthesis
41 @synthesize someString;
42 @synthesize someNumber;
43 - init
45   return self;
47 @end
49 int main(void)
51   return 0;