diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/DebugInfo/Inputs/llvm-symbolizer-dwo-test | bin | 0 -> 9579 bytes | |||
-rw-r--r-- | test/DebugInfo/Inputs/llvm-symbolizer-dwo-test.cc | 18 | ||||
-rw-r--r-- | test/DebugInfo/llvm-symbolizer.test | 4 |
3 files changed, 22 insertions, 0 deletions
diff --git a/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test b/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test Binary files differnew file mode 100755 index 0000000000..c28c3d277a --- /dev/null +++ b/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test diff --git a/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test.cc b/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test.cc new file mode 100644 index 0000000000..ea0967a263 --- /dev/null +++ b/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test.cc @@ -0,0 +1,18 @@ +int f(int a, int b) { + return a + b; +} + +int g(int a) { + return a + 1; +} + + +int main() { + return f(2, g(2)); +} + +// Built with Clang 3.5.0: +// $ mkdir -p /tmp/dbginfo +// $ cp llvm-symbolizer-dwo-test.cc /tmp/dbginfo +// $ cd /tmp/dbginfo +// $ clang -gsplit-dwarf llvm-symbolizer-dwo-test.cc diff --git a/test/DebugInfo/llvm-symbolizer.test b/test/DebugInfo/llvm-symbolizer.test index 4b532f3e4a..6d51fe96c4 100644 --- a/test/DebugInfo/llvm-symbolizer.test +++ b/test/DebugInfo/llvm-symbolizer.test @@ -8,6 +8,7 @@ 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: echo "%p/Inputs/llvm-symbolizer-dwo-test 0x400514" >> %t.input RUN: llvm-symbolizer --functions --inlining --demangle=false \ RUN: --default-arch=i386 < %t.input | FileCheck %s @@ -48,6 +49,9 @@ CHECK: main CHECK: _Z3inci CHECK: _Z3inci +CHECK: main +CHECK-NEXT: llvm-symbolizer-dwo-test.cc:11 + RUN: echo "unexisting-file 0x1234" > %t.input2 RUN: llvm-symbolizer < %t.input2 |