view clang/test/CodeGenObjC/debug-info-objc-property-dwarf5.m @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children c4bab56944e8
line wrap: on
line source

// 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]+]]