usleep tests: Avoid failure due to known Cygwin 3.5.3 bug.
[gnulib.git] / tests / test-fenv-c++.cc
blobdb5d192be5bf3f1c5b3a44cba00172561fffef1a
1 /* Test of <fenv.h> substitute in C++ mode.
2 Copyright (C) 2023-2024 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
19 #define GNULIB_NAMESPACE gnulib
20 #include <config.h>
22 #include <fenv.h>
24 #include "signature.h"
27 #if GNULIB_TEST_FEGETENV
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::fegetenv, int, (fenv_t *));
29 #endif
31 #if GNULIB_TEST_FESETENV
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::fesetenv, int, (fenv_t const *));
33 #endif
35 #if GNULIB_TEST_FEUPDATEENV
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::feupdateenv, int, (fenv_t const *));
37 #endif
39 #if GNULIB_TEST_FEHOLDEXCEPT
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::feholdexcept, int, (fenv_t *));
41 #endif
43 #if GNULIB_TEST_FEGETROUND
44 SIGNATURE_CHECK (GNULIB_NAMESPACE::fegetround, int, (void));
45 #endif
47 #if GNULIB_TEST_FESETROUND
48 SIGNATURE_CHECK (GNULIB_NAMESPACE::fesetround, int, (int));
49 #endif
51 #if GNULIB_TEST_FECLEAREXCEPT
52 SIGNATURE_CHECK (GNULIB_NAMESPACE::feclearexcept, int, (int));
53 #endif
55 #if GNULIB_TEST_FERAISEEXCEPT
56 SIGNATURE_CHECK (GNULIB_NAMESPACE::feraiseexcept, int, (int));
57 #endif
59 #if GNULIB_TEST_FETESTEXCEPT
60 SIGNATURE_CHECK (GNULIB_NAMESPACE::fetestexcept, int, (int));
61 #endif
63 #if GNULIB_TEST_FESETEXCEPT
64 SIGNATURE_CHECK (GNULIB_NAMESPACE::fesetexcept, int, (int));
65 #endif
67 #if GNULIB_TEST_FEENABLEEXCEPT
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::feenableexcept, int, (int));
69 #endif
71 #if GNULIB_TEST_FEDISABLEEXCEPT
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::fedisableexcept, int, (int));
73 #endif
75 #if GNULIB_TEST_FEGETEXCEPT
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::fegetexcept, int, (void));
77 #endif
79 #if GNULIB_TEST_FEGETEXCEPTFLAG
80 SIGNATURE_CHECK (GNULIB_NAMESPACE::fegetexceptflag, int, (fexcept_t *, int));
81 #endif
83 #if GNULIB_TEST_FESETEXCEPTFLAG
84 SIGNATURE_CHECK (GNULIB_NAMESPACE::fesetexceptflag, int, (fexcept_t const *, int));
85 #endif
87 #if GNULIB_TEST_FETESTEXCEPTFLAG
88 SIGNATURE_CHECK (GNULIB_NAMESPACE::fetestexceptflag, int, (fexcept_t const *, int));
89 #endif
92 int
93 main ()