Remove unneeded initialisation of fenv_t and fexcept_t.
Though common, there is no requirement that fenv_t and fexcept_t are structure and integer types, respectively. fexcept_t is a structure on CloudABI. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@232329 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f77031db26
commit
94d09faa93
@ -60,8 +60,8 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
std::fenv_t fenv = {0};
|
||||
std::fexcept_t fex = 0;
|
||||
std::fenv_t fenv;
|
||||
std::fexcept_t fex;
|
||||
static_assert((std::is_same<decltype(std::feclearexcept(0)), int>::value), "");
|
||||
static_assert((std::is_same<decltype(std::fegetexceptflag(&fex, 0)), int>::value), "");
|
||||
static_assert((std::is_same<decltype(std::feraiseexcept(0)), int>::value), "");
|
||||
|
Loading…
Reference in New Issue
Block a user