1# RUN: rm -rf %t.dir 2# RUN: mkdir %t.dir 3# RUN: cd %t.dir 4# RUN: yaml2obj %p/Inputs/split-dwarf-5-addrbase.dwo.yaml -o %t.dir/test.dwo 5# RUN: yaml2obj %p/Inputs/split-dwarf-5-addrbase.yaml -o %t.dir/test 6# RUN: lldb-test breakpoints %t.dir/test %s | FileCheck %s 7 8# This test checks that source code location is shown correctly 9# when -gsplit-dwarf and DWARF 5 are used. 10# 11# split-dwarf-5-addrbase.dwo.yaml and split-dwarf-5-addrbase.yamlare 12# reduced yaml files produces from the dwo file and the corresponding executable. 13# 14# The following code was used initially: 15# void baz() { 16# } 17# 18# int main() { 19# baz(); 20# return 0; 21# } 22# 23# Invocation used to produce outputs was: 24# clang test.cc -g -fno-rtti -c -gdwarf-5 -gsplit-dwarf 25# clang test.o -g -fno-rtti -gdwarf-5 -o test -gsplit-dwarf 26# clang version 8.0.0 (trunk 347299) 27 28b baz 29# CHECK-LABEL: b baz 30# CHECK: Address: {{.*}}baz() + 4 at test.cc:2:1 31