diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-04-05 08:30:13 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-04-05 08:30:13 +0000 |
commit | 1c4d286f5cf3a13d658a4b1930a5ead12bd59918 (patch) | |
tree | 3120b95dd4fa8bca1d9a34a5a0ee46ad889282b0 /test/DebugInfo | |
parent | 992347f27131a403043a1e2f1bec4da82568df35 (diff) |
Add a basic test for llvm-symbolizer tool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo')
-rw-r--r-- | test/DebugInfo/llvm-symbolizer.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/DebugInfo/llvm-symbolizer.test b/test/DebugInfo/llvm-symbolizer.test new file mode 100644 index 0000000000..7776ec5978 --- /dev/null +++ b/test/DebugInfo/llvm-symbolizer.test @@ -0,0 +1,21 @@ +RUN: echo "%p/Inputs/dwarfdump-test.elf-x86-64 0x400559" > %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: llvm-symbolizer --functions --inlining --demangle=false < %t.input \ +RUN: | FileCheck %s + +REQUIRES: shell + +CHECK: main +CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16 +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:8 |