Regenerate testcase from source.
[oota-llvm.git] / test / DebugInfo / llvm-symbolizer.test
1 RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400559" > %t.input
2 RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64.debuglink 0x400559" >> %t.input
3 RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400436" >> %t.input
4 RUN: echo "%p/Inputs/dwarfdump-test4.elf-x86-64 0x62c" >> %t.input
5 RUN: echo "%p/Inputs/dwarfdump-inl-test.elf-x86-64 0x710" >> %t.input
6 RUN: echo "\"%p/Inputs/dwarfdump-test3.elf-x86-64 space\" 0x633" >> %t.input
7 RUN: echo "%p/Inputs/macho-universal 0x1f84" >> %t.input
8 RUN: echo "%p/Inputs/macho-universal:i386 0x1f67" >> %t.input
9 RUN: echo "%p/Inputs/macho-universal:x86_64 0x100000f05" >> %t.input
10
11 RUN: llvm-symbolizer --functions --inlining --demangle=false \
12 RUN:    --default-arch=i386 < %t.input | FileCheck %s
13
14 CHECK:       main
15 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
16
17 CHECK:       main
18 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
19
20 CHECK:      _start
21
22 CHECK:      _Z1cv
23 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test4-part1.cc:2
24
25 CHECK:      inlined_h
26 CHECK-NEXT: dwarfdump-inl-test.h:2
27 CHECK-NEXT: inlined_g
28 CHECK-NEXT: dwarfdump-inl-test.h:7
29 CHECK-NEXT: inlined_f
30 CHECK-NEXT: dwarfdump-inl-test.cc:3
31 CHECK-NEXT: main
32 CHECK-NEXT: dwarfdump-inl-test.cc:
33
34 CHECK:       _Z3do1v
35 CHECK-NEXT: dwarfdump-test3-decl.h:7
36
37 CHECK:      main
38 CHECK:      _Z3inci
39 CHECK:      _Z3inci
40
41 RUN: echo "unexisting-file 0x1234" > %t.input2
42 RUN: llvm-symbolizer < %t.input2
43
44 RUN: echo "%p/Inputs/macho-universal 0x1f84" > %t.input3
45 RUN: llvm-symbolizer < %t.input3 | FileCheck %s --check-prefix=UNKNOWN-ARCH
46
47 UNKNOWN-ARCH-NOT: main
48 UNKNOWN-ARCH: ??
49 UNKNOWN-ARCH-NOT: main