[libcxx] [test] D26812: In random tests, use real static_asserts and silence a warning.
authorStephan T. Lavavej <stl@exchange.microsoft.com>
Fri, 18 Nov 2016 22:45:32 +0000 (22:45 +0000)
committerStephan T. Lavavej <stl@exchange.microsoft.com>
Fri, 18 Nov 2016 22:45:32 +0000 (22:45 +0000)
commitae3c4eec5ab73bf4635939b938eaf4bdbfc6b12b
tree3b3ac2d7f71e0fd03bc79d2a273b711e1fdbccfa
parent62ae8f671cc922ec15e001e40801164073c8eb84
[libcxx] [test] D26812: In random tests, use real static_asserts and silence a warning.

In C++11 mode and newer, use real static_asserts.
In C++03 mode, min() and max() aren't constexpr, so use plain asserts.

One test triggers MSVC's warning C4310 "cast truncates constant value".
The code is valid, and yet the warning is valid, so I'm silencing it
through push-disable-pop.

llvm-svn: 287391
libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.disc/values.pass.cpp
libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.ibits/values.pass.cpp
libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/values.pass.cpp
libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/values.pass.cpp
libcxx/test/std/numerics/rand/rand.eng/rand.eng.mers/values.pass.cpp
libcxx/test/std/numerics/rand/rand.eng/rand.eng.sub/values.pass.cpp