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