summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/llvm-dwarfdump/X86/debug_type_offset.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-dwarfdump/X86/debug_type_offset.test b/llvm/test/tools/llvm-dwarfdump/X86/debug_type_offset.test
new file mode 100644
index 00000000000..b1fcad4312d
--- /dev/null
+++ b/llvm/test/tools/llvm-dwarfdump/X86/debug_type_offset.test
@@ -0,0 +1,8 @@
+RUN: llvm-mc %S/../../../DebugInfo/Inputs/typeunit-header.s -filetype obj \
+RUN: -triple x86_64-unknown-elf -o - \
+RUN: | llvm-dwarfdump -debug-types=0x00000019 - | FileCheck %s
+CHECK: .debug_types contents:
+:CHECK-NOT: {{:}}
+CHECK: 0x00000019: DW_TAG_structure_type
+CHECK: DW_AT_visibility
+CHECK-NOT: {{:}}
OpenPOWER on IntegriCloud