1*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 -x objective-c -emit-llvm -g < %s | FileCheck "%s" 2f4a2713aSLionel Sambuc// Test to check that subprogram start location. 3f4a2713aSLionel Sambuc 4f4a2713aSLionel Sambuc@interface Foo 5f4a2713aSLionel Sambuc-(int) barMethod; 6f4a2713aSLionel Sambuc@end 7f4a2713aSLionel Sambuc 8f4a2713aSLionel Sambuc@implementation Foo 9f4a2713aSLionel Sambuc-(int) barMethod { 10*0a6a1f1dSLionel Sambuc// CHECK: [ DW_TAG_subprogram ] [line [[@LINE-1]]] 11f4a2713aSLionel Sambuc int i = 0; 12f4a2713aSLionel Sambuc int j = 1; 13f4a2713aSLionel Sambuc int k = 1; 14f4a2713aSLionel Sambuc return i + j + k; 15f4a2713aSLionel Sambuc} 16f4a2713aSLionel Sambuc@end 17