1# RUN: yaml2obj %p/Inputs/debug_rnglist_basic.yaml -o %ttest 2# RUN: lldb-test breakpoints %ttest %s | FileCheck %s 3 4# The following code and invocation were used to produce yaml file, 5# which was manually reduced after that. 6# clang -O0 -gdwarf-5 test.cpp -o test -fuse-ld=lld -ffunction-sections 7# 8# //test.cpp: 9# int zed() { 10# return 1; 11# } 12# 13# int main() { 14# return zed(); 15# } 16# 17# clang and LLD versions were 8.0.0 (trunk 343487) 18# 19# Output file contains .debug_rnglists section with basic entries: 20# DW_RLE_start_length and DW_RLE_end_of_list. 21# If LLDB would not be able to parse the section and entries correctly, 22# then reported location would be incorrect. 23 24b main 25# CHECK-LABEL: b main 26# CHECK: Address: {{.*}}`main + 15 at test.cpp:6:9 27 28b zed 29# CHECK-LABEL: b zed 30# CHECK: Address: {{.*}}`zed() + 4 at test.cpp:2:2 31