cmath: Support clang's -fdelayed-template-parsing
r283051 added some functions to cmath (in namespace std) that have the same name as functions in math.h (in the global namespace). Clang's limited support for `-fdelayed-template-parsing` chokes on this. Rename the ones in `cmath` and their uses in `complex` and the test. rdar://problem/32848355 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@307357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -23,9 +23,9 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
static_assert(std::__libcpp_isnan(0.) == false, "");
|
||||
static_assert(std::__libcpp_isinf(0.0) == false, "");
|
||||
static_assert(std::__libcpp_isfinite(0.0) == true, "");
|
||||
static_assert(std::__libcpp_isnan_or_builtin(0.) == false, "");
|
||||
static_assert(std::__libcpp_isinf_or_builtin(0.0) == false, "");
|
||||
static_assert(std::__libcpp_isfinite_or_builtin(0.0) == true, "");
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user