[libc-commits] [libc] [libc] asin fuzz testing (PR #147786)

via libc-commits libc-commits at lists.llvm.org
Wed Jul 9 12:01:18 PDT 2025


================
@@ -0,0 +1,38 @@
+//===-- asin_fuzz.cpp -----------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// Fuzzing test for llvm-libc asin implementation.
+///
+//===----------------------------------------------------------------------===//
+
+#include "src/math/asin.h"
+#include "utils/MPFRWrapper/mpfr_inc.h"
+#include <math.h>
+
+extern "C" int LLVMFuzzerTestOneInput(const double x) {
----------------
lntue wrote:

nit: `const` in a function parameter has no effect.

https://github.com/llvm/llvm-project/pull/147786


More information about the libc-commits mailing list