Files
clang-p2996/clang/test/CodeGenObjC/debug-info-synthesis.m
Duncan P. N. Exon Smith 9dd4e4e63a DebugInfo: Metadata constructs now start with DI*
LLVM r236120 renamed debug info IR constructs to use a `DI` prefix, now
that the `DIDescriptor` hierarchy has been gone for about a week.  This
commit was generated using the rename-md-di-nodes.sh upgrade script
attached to PR23080, followed by running clang-format-diff.py on the
`lib/` portion of the patch.

llvm-svn: 236121
2015-04-29 16:40:08 +00:00

38 lines
725 B
Objective-C

// RUN: %clang_cc1 -emit-llvm -g -w -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
# 1 "foo.m" 1
# 1 "foo.m" 2
# 1 "./foo.h" 1
@interface NSObject {
struct objc_object *isa;
}
@end
@class NSDictionary;
@interface Foo : NSObject {}
@property (strong, nonatomic) NSDictionary *dict;
@end
# 2 "foo.m" 2
@implementation Foo
@synthesize dict = _dict;
- (void) bork {
}
@end
int main(int argc, char *argv[]) {
@autoreleasepool {
Foo *f = [Foo new];
[f bork];
}
}
// CHECK: ![[FILE:.*]] = !DIFile(filename: "{{[^"]+}}foo.h"
// CHECK: !DISubprogram(name: "-[Foo setDict:]"
// CHECK-SAME: file: ![[FILE]],
// CHECK-SAME: line: 8,
// CHECK-SAME: isLocal: true, isDefinition: true