1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2026-10-24 00:48:56 +03:00
Files
gnulib/tests/test-thread-optim1.c
Bruno Haible d9e15740b5 thread-optim: Add tests.
* tests/test-thread-optim1.c: New file.
* tests/test-thread-optim2.c: New file.
* modules/thread-optim-tests: New file.
2026-05-16 12:45:59 +02:00

37 lines
1.0 KiB
C

/* Test of optimization of multithreaded code..
Copyright (C) 2026 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>, 2026. */
#include <config.h>
/* Specification. */
#include "thread-optim.h"
#include "macros.h"
int
main ()
{
#ifdef _GL_MULTITHREADED_ALWAYS_TRUE
ASSERT (gl_multithreaded ());
#else
ASSERT (! gl_multithreaded ());
#endif
return test_exit_status;
}