+2022-09-03 Bruno Haible <bruno@clisp.org>
+
+ sched: Add C++ tests.
+ * tests/test-sched-c++.cc: New file.
+ * modules/sched-c++-tests: New file.
+ * modules/sched-tests (Depends-on): Add sched-c++-tests.
+
2022-09-03 Bruno Haible <bruno@clisp.org>
netinet_in: Add C++ tests.
--- /dev/null
+Files:
+tests/test-sched-c++.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-sched-c++
+check_PROGRAMS += test-sched-c++
+test_sched_c___SOURCES = test-sched-c++.cc
+test_sched_c___LDADD = $(LDADD) $(LIB_SCHED_YIELD)
+endif
--- /dev/null
+/* Test of <sched.h> substitute in C++ mode.
+ Copyright (C) 2022 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
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 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 <https://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2022. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <sched.h>
+
+#include "signature.h"
+
+
+#if GNULIB_TEST_SCHED_YIELD
+SIGNATURE_CHECK (GNULIB_NAMESPACE::sched_yield, int, (void));
+#endif
+
+
+int
+main ()
+{
+}