[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / DebugInfo / symbolize-gnu-debuglink-fallback.test
blob43d5a2c818fac39aabda4e6f52d475d3b2203565
1 # REQUIRES: shell
2 # Ensures that .debuglink can fallback to a separate location. This is normally
3 # /usr/lib/debug (or /usr/libdata/debug for NetBSD), but can be configured on
4 # the command line (mainly for testing).
6 RUN: rm -rf %t/foo %t/bar
7 RUN: mkdir -p %t/foo %t/bar/%t/foo
9 RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64.debuglink %t/foo
11 RUN: llvm-symbolizer --obj=%t/foo/dwarfdump-test.elf-x86-64.debuglink 0x40113f \
12 RUN:   --fallback-debug-path=%t/bar | FileCheck %s --check-prefix=UNKNOWN
14 UNKNOWN:      main
15 UNKNOWN-NEXT: ??:0:0
17 RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64 %t/bar/%t/foo
18 RUN: llvm-symbolizer --obj=%t/foo/dwarfdump-test.elf-x86-64.debuglink 0x40113f \
19 RUN:   --fallback-debug-path=%t/bar | FileCheck %s --check-prefix=FOUND
21 FOUND:      main
22 FOUND-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16