[ubsan] Stop cast-overflow.cpp test leaking undefined behaviour into the exit code.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 22 Apr 2015 16:14:01 +0000 (16:14 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 22 Apr 2015 16:14:01 +0000 (16:14 +0000)
commit7ea4cfcf8343de0a1b3e70ca028628bf459fe0ec
treecd11bf7625d1ad0d3ffffe97e61ab7aaa0683a71
parentcab567873f0b4eda8c3f61e5403e626c6926d5d3
[ubsan] Stop cast-overflow.cpp test leaking undefined behaviour into the exit code.

Summary:
ubsan was correctly catching the undefined behaviour but lit's shell was
failing the test anyway because the exit code was non-zero as a result of the
undefined behaviour.

This fixes the test on a mips-linux-gnu target.

Reviewers: samsonov

Reviewed By: samsonov

Subscribers: samsonov, llvm-commits, rsmith, sagar

Differential Revision: http://reviews.llvm.org/D9155

llvm-svn: 235518
compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp