forked from OSchip/llvm-project
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. llvm-svn: 232329
This commit is contained in:
parent
4297c3f08c
commit
69722ab7c1
|
@ -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