xref: /llvm-project/clang/test/CodeGenObjC/debug-info-default-synth-ivar.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -debug-info-kind=limited %s -o %t
2// RUN: grep DW_TAG_member %t | count 5
3
4@class NSString;
5
6@interface InstanceVariablesEverywhereButTheInterface
7@end
8
9@interface InstanceVariablesEverywhereButTheInterface()
10{
11  NSString *_someString;
12}
13
14@property(readonly) NSString *someString;
15@property(readonly) unsigned long someNumber;
16@end
17
18@implementation InstanceVariablesEverywhereButTheInterface
19{
20  unsigned long _someNumber;
21}
22@synthesize someString = _someString, someNumber = _someNumber;
23@end
24
25@interface AutomaticSynthesis
26{
27  int real_ivar;
28}
29@property(copy) NSString *someString;
30@property unsigned long someNumber;
31@end
32
33@implementation AutomaticSynthesis
34@end
35