Add overflow check to tanh(complex) and reduce to finite answer. Fixes http://llvm.org/bugs/show_bug.cgi?id=13874

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@164266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2012-09-19 23:51:47 +00:00
parent a585de645c
commit 2d3f4ee99f
2 changed files with 6 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ void
test()
{
test(std::complex<T>(0, 0), std::complex<T>(0, 0));
test(std::complex<T>(10000, -10000), std::complex<T>(0, -1));
}
void test_edges()