1*0a6a1f1dSLionel Sambuc// REQUIRES: x86-registered-target 2f4a2713aSLionel Sambuc// RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin10 -fexceptions -fobjc-exceptions -g %s -o - | FileCheck %s 3f4a2713aSLionel Sambuc 4*0a6a1f1dSLionel Sambuc// CHECK: !"0x2e\00-[InstanceVariablesEverywhereButTheInterface someString]\00{{.*}}", {{.*}} ; [ DW_TAG_subprogram ] 5f4a2713aSLionel Sambuc 6f4a2713aSLionel Sambuc//rdar: //8498026 7f4a2713aSLionel Sambuc 8f4a2713aSLionel Sambuc@class NSString; 9f4a2713aSLionel Sambuc 10f4a2713aSLionel Sambuc@interface InstanceVariablesEverywhereButTheInterface 11f4a2713aSLionel Sambuc@end 12f4a2713aSLionel Sambuc 13f4a2713aSLionel Sambuc@interface InstanceVariablesEverywhereButTheInterface() 14f4a2713aSLionel Sambuc{ 15f4a2713aSLionel Sambuc NSString *_someString; 16f4a2713aSLionel Sambuc} 17f4a2713aSLionel Sambuc 18f4a2713aSLionel Sambuc@property(readonly) NSString *someString; 19f4a2713aSLionel Sambuc@property(readonly) unsigned long someNumber; 20f4a2713aSLionel Sambuc@end 21f4a2713aSLionel Sambuc 22f4a2713aSLionel Sambuc@implementation InstanceVariablesEverywhereButTheInterface 23f4a2713aSLionel Sambuc{ 24f4a2713aSLionel Sambuc unsigned long _someNumber; 25f4a2713aSLionel Sambuc} 26f4a2713aSLionel Sambuc 27f4a2713aSLionel Sambuc@synthesize someString = _someString, someNumber = _someNumber; 28f4a2713aSLionel Sambuc 29f4a2713aSLionel Sambuc- init { 30f4a2713aSLionel Sambuc return self; 31f4a2713aSLionel Sambuc} 32f4a2713aSLionel Sambuc@end 33f4a2713aSLionel Sambuc 34f4a2713aSLionel Sambuc@interface AutomaticSynthesis 35f4a2713aSLionel Sambuc{ 36f4a2713aSLionel Sambuc int real_ivar; 37f4a2713aSLionel Sambuc} 38f4a2713aSLionel Sambuc@property(copy) NSString *someString; 39f4a2713aSLionel Sambuc@property unsigned long someNumber; 40f4a2713aSLionel Sambuc@end 41f4a2713aSLionel Sambuc 42f4a2713aSLionel Sambuc@implementation AutomaticSynthesis 43f4a2713aSLionel Sambuc@synthesize someString; 44f4a2713aSLionel Sambuc@synthesize someNumber; 45f4a2713aSLionel Sambuc- init 46f4a2713aSLionel Sambuc{ 47f4a2713aSLionel Sambuc return self; 48f4a2713aSLionel Sambuc} 49f4a2713aSLionel Sambuc@end 50f4a2713aSLionel Sambuc 51f4a2713aSLionel Sambucint main() 52f4a2713aSLionel Sambuc{ 53f4a2713aSLionel Sambuc return 0; 54f4a2713aSLionel Sambuc} 55