2015-12-30 11:49:41 +00:00
|
|
|
// RUN: %clang_cc1 -x objective-c -emit-llvm -debug-info-kind=limited < %s | FileCheck "%s"
|
2010-02-16 09:31:36 +00:00
|
|
|
// Test to check that subprogram start location.
|
|
|
|
|
|
|
|
@interface Foo
|
|
|
|
-(int) barMethod;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation Foo
|
|
|
|
-(int) barMethod {
|
2015-05-27 18:47:56 +00:00
|
|
|
// CHECK: !DISubprogram({{.*}}line: [[@LINE-1]]
|
2010-02-16 09:31:36 +00:00
|
|
|
int i = 0;
|
|
|
|
int j = 1;
|
|
|
|
int k = 1;
|
|
|
|
return i + j + k;
|
|
|
|
}
|
|
|
|
@end
|