blob: e7d3a9a8749e59d37ee0879ef23d13a91a397b05 [file] [log] [blame]
Galina Kistanova0ccb31c2011-06-03 22:24:54 +00001// REQUIRES: x86-64-registered-target
John McCalld1e40d52011-10-02 01:16:38 +00002// RUN: %clang_cc1 -fno-dwarf2-cfi-asm -triple x86_64-apple-darwin10 -fexceptions -fobjc-exceptions -S -g %s -o - | FileCheck %s
Rafael Espindola1b0c5fa2011-04-30 18:47:32 +00003
4//CHECK: "-[InstanceVariablesEverywhereButTheInterface someString]":
5//CHECK: .quad "-[InstanceVariablesEverywhereButTheInterface someString]"
Rafael Espindola1b0c5fa2011-04-30 18:47:32 +00006//CHECK: .ascii "-[InstanceVariablesEverywhereButTheInterface someString]"
7//CHECK: .asciz "-[InstanceVariablesEverywhereButTheInterface someString]"
Rafael Espindola8d543052011-05-01 15:45:27 +00008//CHECK: "-[InstanceVariablesEverywhereButTheInterface someString].eh":
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
Devang Patelbd82a8f2011-05-03 20:22:16 +000047@synthesize someString;
48@synthesize someNumber;
Fariborz Jahanian1a4c9372010-10-18 17:51:06 +000049- init
50{
51 return self;
52}
53@end
54
55int main()
56{
57 return 0;
58}