unitests: add some ARM TargetParser tests
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 6 Mar 2016 04:50:55 +0000 (04:50 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 6 Mar 2016 04:50:55 +0000 (04:50 +0000)
commit11bf1ac297d134bda18ac883fdc20a6f95bfe5c7
tree5f66ec74bf2fa2be34fc174e7de1d3dbc8ff25e6
parent5d29dee00343de8eecff9c4b7ee1775c4d2eeb47
unitests: add some ARM TargetParser tests

The ARM TargetParser would construct invalid StringRefs.  This would cause
asserts to trigger.  Add some tests in LLVM to ensure that we dont regress on
this in the future.  Although there is a test for this in clang, this ensures
that the changes would get caught in the same repository.

llvm-svn: 262790
llvm/unittests/Support/CMakeLists.txt
llvm/unittests/Support/TargetParserTest.cpp [new file with mode: 0644]