Files
clang-p2996/lldb/lit/Breakpoint/implicit_const_form_support.test
George Rimar 230adfa96c [LLDB] - Add support for DW_FORM_implicit_const.
LLDB does not support this DWARF5 form atm.
At least gcc emits it in some cases when doing optimization
for abbreviations.

As far I can tell, clang does not support it yet, though
the rest LLVM code already knows about it.

The patch adds the support.

Differential revision: https://reviews.llvm.org/D52689

llvm-svn: 344328
2018-10-12 09:46:15 +00:00

34 lines
777 B
Plaintext

# RUN: yaml2obj %p/Inputs/implicit_const_form_support.yaml > %ttest
# RUN: lldb-test breakpoints %ttest %s | FileCheck %s
## The intention of the test is to check that DW_FORM_implicit_const
## is supported and handled properly.
## About implicit_const_form_support.yaml:
## The following invocation and code were used to produce the binary
## which was converted to yaml and reduced:
## gcc version 8.0.1 20180319 (experimental) (GCC)
##
## g++ test.cpp -g -gdwarf-5 -o test
##
## // test.cpp
## int foo1() {
## return 0;
## }
##
## int foo2() {
## return 0;
## }
##
## int main() {
## return foo1() + foo2();
## }
b foo1
# CHECK-LABEL: b foo1
# CHECK: Address: {{.*}}foo1() at test.cpp:2:9
b foo2
# CHECK-LABEL: b foo2
# CHECK: Address: {{.*}}foo2() at test.cpp:6:9