1 // RUN: %clang_cc1 -ast-dump %s | FileCheck %s
3 // Test that accessor stubs for default-synthesized ObjC accessors
4 // have a valid source location.
6 __attribute__((objc_root_class))
11 @interface NSString : NSObject
14 @interface MyData : NSObject
18 @property struct Data data;
20 // CHECK: ObjCImplementationDecl {{.*}}line:[[@LINE+2]]{{.*}} MyData
21 // CHECK: ObjCMethodDecl {{.*}}col:23 implicit - setData: 'void'
22 @implementation MyData