brintos

brintos / llvm-project-archived public Read only

0
0
Text · 907 B · f3b9653 Raw
31 lines · plain
1# RUN: rm -rf %t.dir2# RUN: mkdir %t.dir3# RUN: cd %t.dir4# RUN: yaml2obj %p/Inputs/split-dwarf-5-addrbase.dwo.yaml -o %t.dir/test.dwo5# RUN: yaml2obj %p/Inputs/split-dwarf-5-addrbase.yaml -o %t.dir/test6# RUN: lldb-test breakpoints %t.dir/test %s | FileCheck %s7 8# This test checks that source code location is shown correctly9# when -gsplit-dwarf and DWARF 5 are used.10#11# split-dwarf-5-addrbase.dwo.yaml and split-dwarf-5-addrbase.yamlare12# 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-dwarf25# clang test.o -g -fno-rtti -gdwarf-5 -o test -gsplit-dwarf26# clang version 8.0.0 (trunk 347299)27 28b baz29# CHECK-LABEL: b baz30# CHECK: Address: {{.*}}baz() + 4 at test.cc:2:131