mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
d212db0cac
FIXME: Could we use llvm::sys::Path here? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185322 91177308-0d34-0410-b5e6-96231b3b80d8
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400559" > %t.input
|
|
RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400436" >> %t.input
|
|
RUN: echo "%p/Inputs/dwarfdump-test4.elf-x86-64 0x62c" >> %t.input
|
|
RUN: echo "%p/Inputs/dwarfdump-inl-test.elf-x86-64 0x710" >> %t.input
|
|
RUN: echo "\"%p/Inputs/dwarfdump-test3.elf-x86-64 space\" 0x633" >> %t.input
|
|
RUN: echo "%p/Inputs/macho-universal 0x1f84" >> %t.input
|
|
RUN: echo "%p/Inputs/macho-universal:i386 0x1f67" >> %t.input
|
|
RUN: echo "%p/Inputs/macho-universal:x86_64 0x100000f05" >> %t.input
|
|
|
|
RUN: llvm-symbolizer --functions --inlining --demangle=false \
|
|
RUN: --default-arch=i386 < %t.input | FileCheck %s
|
|
|
|
CHECK: main
|
|
CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
|
|
|
|
CHECK: _start
|
|
|
|
CHECK: _Z1cv
|
|
CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test4-part1.cc:2
|
|
|
|
CHECK: inlined_h
|
|
CHECK-NEXT: dwarfdump-inl-test.h:2
|
|
CHECK-NEXT: inlined_g
|
|
CHECK-NEXT: dwarfdump-inl-test.h:7
|
|
CHECK-NEXT: inlined_f
|
|
CHECK-NEXT: dwarfdump-inl-test.cc:3
|
|
CHECK-NEXT: main
|
|
CHECK-NEXT: dwarfdump-inl-test.cc:
|
|
|
|
CHECK: _Z3do1v
|
|
CHECK-NEXT: dwarfdump-test3-decl.h:7
|
|
|
|
CHECK: main
|
|
CHECK: _Z3inci
|
|
CHECK: _Z3inci
|
|
|
|
RUN: echo "unexisting-file 0x1234" > %t.input2
|
|
RUN: llvm-symbolizer < %t.input2
|
|
|
|
RUN: echo "%p/Inputs/macho-universal 0x1f84" > %t.input3
|
|
RUN: llvm-symbolizer < %t.input3 | FileCheck %s --check-prefix=UNKNOWN-ARCH
|
|
|
|
UNKNOWN-ARCH-NOT: main
|
|
UNKNOWN-ARCH: ??
|
|
UNKNOWN-ARCH-NOT: main
|