[DebugInfo] Add unit tests for DWARFListTableHeader::length().
authorIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 14 Jul 2020 08:54:59 +0000 (15:54 +0700)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 14 Jul 2020 09:35:17 +0000 (16:35 +0700)
commitdd6faf13d8e27990f226147f543a6bdf1d0a0c46
tree07a914b180fb3cbca5a417d84a3241736db56dbc
parentc4fc26b4c0e37066c0909099b2e61d4701549227
[DebugInfo] Add unit tests for DWARFListTableHeader::length().

This adds unit tests to check the expected behavior of the method in
case the unit length field is truncated.

Differential Revision: https://reviews.llvm.org/D83673
llvm/unittests/DebugInfo/DWARF/CMakeLists.txt
llvm/unittests/DebugInfo/DWARF/DWARFListTableTest.cpp [new file with mode: 0644]