1 RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400559" > %t.input
2 RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400436" >> %t.input
3 RUN: echo "%p/Inputs/dwarfdump-test4.elf-x86-64 0x62c" >> %t.input
4 RUN: echo "%p/Inputs/dwarfdump-inl-test.elf-x86-64 0x710" >> %t.input
5 RUN: echo "\"%p/Inputs/dwarfdump-test3.elf-x86-64 space\" 0x633" >> %t.input
6 RUN: echo "%p/Inputs/macho-universal 0x1f84" >> %t.input
7 RUN: echo "%p/Inputs/macho-universal:i386 0x1f67" >> %t.input
8 RUN: echo "%p/Inputs/macho-universal:x86_64 0x100000f05" >> %t.input
10 RUN: llvm-symbolizer --functions --inlining --demangle=false \
11 RUN: --default-arch=i386 < %t.input | FileCheck %s
16 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
21 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test4-part1.cc:2
24 CHECK-NEXT: dwarfdump-inl-test.h:2
26 CHECK-NEXT: dwarfdump-inl-test.h:7
28 CHECK-NEXT: dwarfdump-inl-test.cc:3
30 CHECK-NEXT: dwarfdump-inl-test.cc:
33 CHECK-NEXT: dwarfdump-test3-decl.h:7
39 RUN: echo "unexisting-file 0x1234" > %t.input2
40 RUN: llvm-symbolizer < %t.input2
42 RUN: echo "%p/Inputs/macho-universal 0x1f84" > %t.input3
43 RUN: llvm-symbolizer < %t.input3 | FileCheck %s --check-prefix=UNKNOWN-ARCH
45 UNKNOWN-ARCH-NOT: main
47 UNKNOWN-ARCH-NOT: main