brintos

brintos / llvm-project-archived public Read only

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