Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / linetable-endscope.c
blob03291a2ea4aa9bb4e1a87317b554d3830de24c24
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
3 // Check the line numbers for the ret instruction. We expect it to be
4 // at the closing of the lexical scope in this case. See the comments in
5 // CodeGenFunction::FinishFunction() for more details.
7 // CHECK: define {{.*}}foo
8 // CHECK: store {{.*}}, !dbg ![[CONV:[0-9]+]]
9 // CHECK: ret {{.*}}, !dbg ![[RET:[0-9]+]]
11 void foo(char c)
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: !{{.*}})