1*67e74705SXin Li // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin10 %s -o - | FileCheck %s 2*67e74705SXin Li 3*67e74705SXin Li // Check the line numbers for the ret instruction. We expect it to be 4*67e74705SXin Li // at the closing of the lexical scope in this case. See the comments in 5*67e74705SXin Li // CodeGenFunction::FinishFunction() for more details. 6*67e74705SXin Li 7*67e74705SXin Li // CHECK: define {{.*}}foo 8*67e74705SXin Li // CHECK: store {{.*}}, !dbg ![[CONV:[0-9]+]] 9*67e74705SXin Li // CHECK: ret {{.*}}, !dbg ![[RET:[0-9]+]] 10*67e74705SXin Li foo(char c)11*67e74705SXin Livoid foo(char c) 12*67e74705SXin Li { 13*67e74705SXin Li int i; 14*67e74705SXin Li // CHECK: ![[CONV]] = !DILocation(line: [[@LINE+1]], scope: !{{.*}}) 15*67e74705SXin Li i = c; 16*67e74705SXin Li // CHECK: ![[RET]] = !DILocation(line: [[@LINE+1]], scope: !{{.*}}) 17*67e74705SXin Li } 18