blob: 0d11d668b1ebcb0dc213a66d5f8526b645aee803 [file] [log] [blame]
Rafael Espindola1b0c5fa2011-04-30 18:47:32 +00001// RUN: %clang_cc1 -fno-dwarf2-cfi-asm -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -S -g %s -o - | FileCheck %s
2
3//CHECK: "-[InstanceVariablesEverywhereButTheInterface someString]":
4//CHECK: .quad "-[InstanceVariablesEverywhereButTheInterface someString]"
5//CHECK: "-[InstanceVariablesEverywhereButTheInterface someString].eh" = 0
6//CHECK: .no_dead_strip "-[InstanceVariablesEverywhereButTheInterface someString].eh"
7//CHECK: .ascii "-[InstanceVariablesEverywhereButTheInterface someString]"
8//CHECK: .asciz "-[InstanceVariablesEverywhereButTheInterface someString]"
Fariborz Jahanian1a4c9372010-10-18 17:51:06 +00009
10//rdar: //8498026
11
12@class NSString;
13
14@interface InstanceVariablesEverywhereButTheInterface
15@end
16
17@interface InstanceVariablesEverywhereButTheInterface()
18{
19 NSString *_someString;
20}
21
22@property(readonly) NSString *someString;
23@property(readonly) unsigned long someNumber;
24@end
25
26@implementation InstanceVariablesEverywhereButTheInterface
27{
28 unsigned long _someNumber;
29}
30
31@synthesize someString = _someString, someNumber = _someNumber;
32
33- init {
34 return self;
35}
36@end
37
38@interface AutomaticSynthesis
39{
40 int real_ivar;
41}
42@property(copy) NSString *someString;
43@property unsigned long someNumber;
44@end
45
46@implementation AutomaticSynthesis
47- init
48{
49 return self;
50}
51@end
52
53int main()
54{
55 return 0;
56}