1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/DebugInfo/X86/dwarfdump-str-offsets-invalid-5.s
Wolfgang Pieb 6ac9f9bfcd [NFC] Change the string offsets table tests to generate the object on the fly
which enables us to remove the test scripts and object files from the repository.

https://reviews.llvm.org/D40914

llvm-svn: 320227
2017-12-09 00:39:53 +00:00

15 lines
604 B
ArmAsm

# 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.