You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
605 B
18 lines
605 B
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
|
|
|
|
// Check the line numbers for the ret instruction. We expect it to be
|
|
// at the closing of the lexical scope in this case. See the comments in
|
|
// CodeGenFunction::FinishFunction() for more details.
|
|
|
|
// CHECK: define {{.*}}foo
|
|
// CHECK: store {{.*}}, !dbg ![[CONV:[0-9]+]]
|
|
// CHECK: ret {{.*}}, !dbg ![[RET:[0-9]+]]
|
|
|
|
void foo(char c)
|
|
{
|
|
int i;
|
|
// CHECK: ![[CONV]] = !DILocation(line: [[@LINE+1]], scope: !{{.*}})
|
|
i = c;
|
|
// CHECK: ![[RET]] = !DILocation(line: [[@LINE+1]], scope: !{{.*}})
|
|
}
|