2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -emit-llvm -debug-info-kind=limited < %s | FileCheck "%s"
|
2010-02-16 02:08:38 +08:00
|
|
|
// Test to check that subprogram start location.
|
|
|
|
|
|
|
|
@interface Foo
|
|
|
|
-(int) barMethod;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation Foo
|
|
|
|
-(int) barMethod {
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DISubprogram({{.*}}line: [[@LINE-1]]
|
2010-02-16 02:08:38 +08:00
|
|
|
int i = 0;
|
|
|
|
int j = 1;
|
|
|
|
int k = 1;
|
|
|
|
return i + j + k;
|
|
|
|
}
|
|
|
|
@end
|