diff options
Diffstat (limited to 'test/DebugInfo')
-rw-r--r-- | test/DebugInfo/Inputs/dwarfdump-line-dwo.cc | 10 | ||||
-rw-r--r-- | test/DebugInfo/Inputs/dwarfdump-line-dwo.elf-x86-64 | bin | 0 -> 1377 bytes | |||
-rw-r--r-- | test/DebugInfo/dwarfdump-line-dwo.test | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/test/DebugInfo/Inputs/dwarfdump-line-dwo.cc b/test/DebugInfo/Inputs/dwarfdump-line-dwo.cc new file mode 100644 index 0000000000..2784ae24ee --- /dev/null +++ b/test/DebugInfo/Inputs/dwarfdump-line-dwo.cc @@ -0,0 +1,10 @@ +struct foo { +}; + +foo f; + +// Built with GCC +// $ mkdir -p /tmp/dbginfo +// $ cp dwarfdump-line-dwo.cc /tmp/dbginfo +// $ cd /tmp/dbginfo +// $ g++ -c -fdebug-types-section dwarfdump-line-dwo.cc -o <output> diff --git a/test/DebugInfo/Inputs/dwarfdump-line-dwo.elf-x86-64 b/test/DebugInfo/Inputs/dwarfdump-line-dwo.elf-x86-64 Binary files differnew file mode 100644 index 0000000000..9f1d267dde --- /dev/null +++ b/test/DebugInfo/Inputs/dwarfdump-line-dwo.elf-x86-64 diff --git a/test/DebugInfo/dwarfdump-line-dwo.test b/test/DebugInfo/dwarfdump-line-dwo.test new file mode 100644 index 0000000000..3178a5d299 --- /dev/null +++ b/test/DebugInfo/dwarfdump-line-dwo.test @@ -0,0 +1,6 @@ +RUN: llvm-dwarfdump %p/Inputs/dwarfdump-line-dwo.elf-x86-64 | FileCheck %s + +CHECK: .debug_line.dwo contents: +CHECK: version: 4 +CHECK: max_ops_per_inst: 1 +CHECK: file_names[ 1]{{.*}}dwarfdump-line-dwo.cc |