Imported Upstream version 1.4.19
[platform/upstream/m4.git] / tests / test-stdlib-c++.cc
index 56d88d1..2079445 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of <stdlib.h> substitute in C++ mode.
-   Copyright (C) 2010-2016 Free Software Foundation, Inc.
+   Copyright (C) 2010-2021 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -12,7 +12,7 @@
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
 /* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
 
 SIGNATURE_CHECK (GNULIB_NAMESPACE::_Exit, void, (int));
 #endif
 
+#if GNULIB_TEST_ALIGNED_ALLOC && HAVE_ALIGNED_ALLOC
+SIGNATURE_CHECK (GNULIB_NAMESPACE::aligned_alloc, void *, (size_t, size_t));
+#endif
+
 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atexit, int, (void (*) (void)));
 
 #if GNULIB_TEST_ATOLL
@@ -43,6 +47,10 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::canonicalize_file_name, char *,
                  (const char *));
 #endif
 
+#if GNULIB_TEST_FREE_POSIX
+SIGNATURE_CHECK (GNULIB_NAMESPACE::free, void, (void *));
+#endif
+
 #if GNULIB_TEST_GETLOADAVG
 SIGNATURE_CHECK (GNULIB_NAMESPACE::getloadavg, int, (double[], int));
 #endif
@@ -85,14 +93,50 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemp, int, (char *));
 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemps, int, (char *, int));
 #endif
 
+#if GNULIB_TEST_POSIX_MEMALIGN && HAVE_POSIX_MEMALIGN
+SIGNATURE_CHECK (GNULIB_NAMESPACE::posix_memalign, int,
+                 (void **, size_t, size_t));
+#endif
+
+#if GNULIB_TEST_POSIX_OPENPT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::posix_openpt, int, (int));
+#endif
+
 #if GNULIB_TEST_PTSNAME
 SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname, char *, (int));
 #endif
 
+#if GNULIB_TEST_PTSNAME_R
+SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname_r, int, (int, char *, size_t));
+#endif
+
 #if GNULIB_TEST_PUTENV
 SIGNATURE_CHECK (GNULIB_NAMESPACE::putenv, int, (char *));
 #endif
 
+#if GNULIB_TEST_QSORT_R
+SIGNATURE_CHECK (GNULIB_NAMESPACE::qsort_r, void,
+                 (void *, size_t, size_t,
+                  int (*) (void const *, void const *, void *), void *));
+#endif
+
+#if GNULIB_TEST_RANDOM
+SIGNATURE_CHECK (GNULIB_NAMESPACE::random, long, (void));
+#endif
+
+#if GNULIB_TEST_RANDOM
+SIGNATURE_CHECK (GNULIB_NAMESPACE::srandom, void, (unsigned int));
+#endif
+
+#if GNULIB_TEST_RANDOM
+SIGNATURE_CHECK (GNULIB_NAMESPACE::initstate, char *,
+                 (unsigned int, char *, size_t));
+#endif
+
+#if GNULIB_TEST_RANDOM
+SIGNATURE_CHECK (GNULIB_NAMESPACE::setstate, char *, (char *));
+#endif
+
 #if GNULIB_TEST_RANDOM_R
 SIGNATURE_CHECK (GNULIB_NAMESPACE::random_r, int,
                  (struct random_data *, int32_t *));
@@ -125,6 +169,10 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::realpath, char *, (const char *, char *));
 SIGNATURE_CHECK (GNULIB_NAMESPACE::rpmatch, int, (const char *));
 #endif
 
+#if GNULIB_TEST_SECURE_GETENV
+SIGNATURE_CHECK (GNULIB_NAMESPACE::secure_getenv, char *, (char const *));
+#endif
+
 #if GNULIB_TEST_SETENV
 SIGNATURE_CHECK (GNULIB_NAMESPACE::setenv, int,
                  (const char *, const char *, int));