[libcxx-commits] [libcxx] eda5bbf - [libc++] [test] Remove an erroneously copy-paste in the hypot() tests. NFC.
Arthur O'Dwyer via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jan 2 09:52:09 PST 2022
Author: Arthur O'Dwyer
Date: 2022-01-02T12:49:55-05:00
New Revision: eda5bbfb9db4d0dc3861333f7b4adf135fe20af8
URL: https://github.com/llvm/llvm-project/commit/eda5bbfb9db4d0dc3861333f7b4adf135fe20af8
DIFF: https://github.com/llvm/llvm-project/commit/eda5bbfb9db4d0dc3861333f7b4adf135fe20af8.diff
LOG: [libc++] [test] Remove an erroneously copy-paste in the hypot() tests. NFC.
Line 1140 is a duplicate of line 1119; it tests the two-argument version
of std::hypot, whereas all the lines in this section are supposed to be
testing the C++17 three-argument version. Remove the erroneous duplicated line.
Split out of D116295.
Added:
Modified:
libcxx/test/std/numerics/c.math/cmath.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/numerics/c.math/cmath.pass.cpp b/libcxx/test/std/numerics/c.math/cmath.pass.cpp
index 160959b1075c0..3d739f52ec75e 100644
--- a/libcxx/test/std/numerics/c.math/cmath.pass.cpp
+++ b/libcxx/test/std/numerics/c.math/cmath.pass.cpp
@@ -1137,7 +1137,6 @@ void test_hypot()
static_assert((std::is_same<decltype(std::hypot((float)0, (bool)0, (float)0)), double>::value), "");
static_assert((std::is_same<decltype(std::hypot((float)0, (unsigned short)0, (double)0)), double>::value), "");
static_assert((std::is_same<decltype(std::hypot((float)0, (int)0, (long double)0)), long double>::value), "");
- static_assert((std::is_same<decltype(std::hypot((float)0, (unsigned int)0)), double>::value), "");
static_assert((std::is_same<decltype(std::hypot((float)0, (double)0, (long)0)), double>::value), "");
static_assert((std::is_same<decltype(std::hypot((float)0, (long double)0, (unsigned long)0)), long double>::value), "");
static_assert((std::is_same<decltype(std::hypot((float)0, (int)0, (long long)0)), double>::value), "");
More information about the libcxx-commits
mailing list