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.

30 lines
619 B

// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -dwarf-version=5 %s -o - | FileCheck %s
@protocol NSObject
@end
@interface NSObject <NSObject> {}
@end
struct Bar {};
@protocol BarProto
@property struct Bar *bar;
@end
@interface Foo <BarProto>
@end
@implementation Foo {}
@synthesize bar = _bar;
- (void)f {}
@end
// CHECK: ![[FOO:[0-9]+]] = !DICompositeType(tag: DW_TAG_structure_type, name: "Foo"
// CHECK: ![[DECL:[0-9]+]] = !DISubprogram(name: "-[Foo setBar:]",
// CHECK-SAME: scope: ![[FOO]]
// CHECK: distinct !DISubprogram(name: "-[Foo setBar:]",
// CHECK-SAME: declaration: ![[DECL:[0-9]+]]