You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
519 B
24 lines
519 B
// RUN: %clang_cc1 -ast-dump %s | FileCheck %s
|
|
|
|
// Test that accessor stubs for default-synthesized ObjC accessors
|
|
// have a valid source location.
|
|
|
|
__attribute__((objc_root_class))
|
|
@interface NSObject
|
|
+ (id)alloc;
|
|
@end
|
|
|
|
@interface NSString : NSObject
|
|
@end
|
|
|
|
@interface MyData : NSObject
|
|
struct Data {
|
|
NSString *name;
|
|
};
|
|
@property struct Data data;
|
|
@end
|
|
// CHECK: ObjCImplementationDecl {{.*}}line:[[@LINE+2]]{{.*}} MyData
|
|
// CHECK: ObjCMethodDecl {{.*}}col:23 implicit - setData: 'void'
|
|
@implementation MyData
|
|
@end
|