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