[DWARF] Add a unit test for DWARFUnit::getLength().
authorIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 10 Sep 2019 09:03:24 +0000 (09:03 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 10 Sep 2019 09:03:24 +0000 (09:03 +0000)
commit3565c6b15c5466d6945fe82eae3e2d8df29d6622
treee2dfc29962b29eff01e1e27da79283535437e732
parentb6722af06863b7133cf9e910ae0319b2a1c2ac78
[DWARF] Add a unit test for DWARFUnit::getLength().

This is a follow-up of rL369529, where the return value of
DWARFUnit::getLength() was changed from uint32_t to uint64_t.
The test checks that a unit header with Length > 4G can be successfully
parsed and the value of the Length field is not truncated.

Differential Revision: https://reviews.llvm.org/D67276

llvm-svn: 371499
llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp