[PATCH] D25403: [CUDA] Mark __libcpp_{isnan, isinf, isfinite} as constexpr.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 15 11:03:37 PST 2016


EricWF added inline comments.


================
Comment at: libcxx/test/libcxx/numerics/c.math/constexpr-fns.pass.cpp:17
+// true constexpr-ness.
+
+#include <cmath>
----------------
jlebar wrote:
> EricWF wrote:
> > Does GCC offer these as contexpr? If not this needs a `// XFAIL: gcc`
> Looks like the relevant builtins in gcc are constexpr-evaluatable: https://godbolt.org/g/GcwJba
Also instead of using `TEST_STD_VER` you can write `// UNSUPPORTED: c++98, c++03`.


https://reviews.llvm.org/D25403





More information about the cfe-commits mailing list