Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / debug-info-block-decl.c
blob6e95ecc54fd5ad691b02c80d4f602cccf89f60a4
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -debug-info-kind=limited -fblocks -emit-llvm -o - %s | FileCheck %s
2 // Assignment and block entry should point to the same line.
4 // CHECK: define{{.*}}@main()
5 // CHECK: store {{.*}}, !dbg ![[ASSIGNMENT:[0-9]+]]
6 // CHECK: define {{.*}} @__main_block_invoke
7 // CHECK: , ![[BLOCK_ENTRY:[0-9]+]])
9 int main(void)
11 // CHECK: [[ASSIGNMENT]] = !DILocation(line: [[@LINE+2]],
12 // CHECK: [[BLOCK_ENTRY]] = !DILocation(line: [[@LINE+1]],
13 int (^blockptr)(void) = ^(void) {
14 return 0;
16 return blockptr();