[clang] [Clang] Add constexpr eval for cmath builtins (PR #194327)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 5 17:59:55 PDT 2026
================
@@ -0,0 +1,191 @@
+// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify -std=c++20 %s
+// RUN: %clang_cc1 -verify -std=c++20 %s
+
+
+static_assert(__builtin_nearbyint(1.1) == 1.0);
----------------
Serosh-commits wrote:
adding the tests
https://github.com/llvm/llvm-project/pull/194327
More information about the cfe-commits
mailing list