diff options
Diffstat (limited to 'llvm/test/DebugInfo/X86/dwarfdump-str-offsets-invalid-5.s')
-rw-r--r-- | llvm/test/DebugInfo/X86/dwarfdump-str-offsets-invalid-5.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/X86/dwarfdump-str-offsets-invalid-5.s b/llvm/test/DebugInfo/X86/dwarfdump-str-offsets-invalid-5.s new file mode 100644 index 00000000000..718b0f5b672 --- /dev/null +++ b/llvm/test/DebugInfo/X86/dwarfdump-str-offsets-invalid-5.s @@ -0,0 +1,14 @@ +# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.o +# RUN: llvm-dwarfdump -v %t.o | FileCheck --check-prefix=INVALIDSECTIONLENGTH %s +# +# Test object to verify that llvm-dwarfdump handles a degenerate string offsets +# section. +# +# Every unit contributes to the string_offsets table. + .section .debug_str_offsets,"",@progbits +# A degenerate section, not enough for a single entry. + .byte 2 + +# INVALIDSECTIONLENGTH: .debug_str_offsets contents: +# INVALIDSECTIONLENGTH-NOT: contents: +# INVALIDSECTIONLENGTH: error: size of .debug_str_offsets is not a multiple of 4. |