diff options
author | Ed Schouten <ed@nuxi.nl> | 2015-03-15 18:36:31 +0000 |
---|---|---|
committer | Ed Schouten <ed@nuxi.nl> | 2015-03-15 18:36:31 +0000 |
commit | 69722ab7c123042a318371fc4a26dd4bc0d60d6a (patch) | |
tree | 3dc0a9adacb4277eb244f0369337a996486abbd3 /libcxx/test/std/numerics/cfenv/cfenv.syn | |
parent | 4297c3f08cb2fcfe2ded22371e48d48760a27e4c (diff) | |
download | bcm5719-llvm-69722ab7c123042a318371fc4a26dd4bc0d60d6a.tar.gz bcm5719-llvm-69722ab7c123042a318371fc4a26dd4bc0d60d6a.zip |
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
Diffstat (limited to 'libcxx/test/std/numerics/cfenv/cfenv.syn')
-rw-r--r-- | libcxx/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp b/libcxx/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp index d46d91f87b8..fcf075a36e1 100644 --- a/libcxx/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp +++ b/libcxx/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp @@ -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), ""); |