• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3
4// CHECK:  !DISubprogram(name: "-[InstanceVariablesEverywhereButTheInterface someString]"
5
6//rdar: //8498026
7
8@class NSString;
9
10@interface InstanceVariablesEverywhereButTheInterface
11@end
12
13@interface InstanceVariablesEverywhereButTheInterface()
14{
15  NSString *_someString;
16}
17
18@property(readonly) NSString *someString;
19@property(readonly) unsigned long someNumber;
20@end
21
22@implementation InstanceVariablesEverywhereButTheInterface
23{
24  unsigned long _someNumber;
25}
26
27@synthesize someString = _someString, someNumber = _someNumber;
28
29- init {
30  return self;
31}
32@end
33
34@interface AutomaticSynthesis
35{
36  int real_ivar;
37}
38@property(copy) NSString *someString;
39@property unsigned long someNumber;
40@end
41
42@implementation AutomaticSynthesis
43@synthesize someString;
44@synthesize someNumber;
45- init
46{
47  return self;
48}
49@end
50
51int main()
52{
53  return 0;
54}
55