diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-10-25 10:18:50 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-10-25 10:18:50 +0000 |
commit | 9b502e512c44365c8df5dce1c032f00688ac2fd7 (patch) | |
tree | 4fe2cab22f98a8db265beff7cb99d476ff8dd4fb /clang/test/CodeGenCXX/debug-info-blocks.cpp | |
parent | 95fd41aeacfee23503d2fcdea9d5a350ace813e4 (diff) | |
download | bcm5719-llvm-9b502e512c44365c8df5dce1c032f00688ac2fd7.tar.gz bcm5719-llvm-9b502e512c44365c8df5dce1c032f00688ac2fd7.zip |
Initialize debug info for special cases of functions that lack declarations and are generated by Clang (global initializers/destructors, thunks) . Fixes PR13942.
llvm-svn: 166676
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-blocks.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-blocks.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-blocks.cpp b/clang/test/CodeGenCXX/debug-info-blocks.cpp new file mode 100644 index 00000000000..5b20db58280 --- /dev/null +++ b/clang/test/CodeGenCXX/debug-info-blocks.cpp @@ -0,0 +1,14 @@ +// RUN: %clang_cc1 %s -gline-tables-only -fblocks -S -emit-llvm -o - | FileCheck %s + +struct A { + A(); + A(const A &); + ~A(); +}; + +void test() { + __block A a; +} + +// CHECK: [ DW_TAG_subprogram ] [line 10] [local] [def] [__Block_byref_object_copy_] +// CHECK: [ DW_TAG_subprogram ] [line 10] [local] [def] [__Block_byref_object_dispose_] |