]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/89023 fix test that fails when <omp.h> not available
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Feb 2019 12:56:59 +0000 (12:56 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Feb 2019 12:56:59 +0000 (12:56 +0000)
commitaaacaee2db0a336926ca64f53458342f8deb8e86
tree6a3dc98b029cff7caa060cbfab1c3ccc558c7aa5
parentfb9cd282910d73599a9b28d64fb271347116675d
PR libstdc++/89023 fix test that fails when <omp.h> not available

Instead of a single test that only checks whether <regex> can be
included in Parallel Mode, add tests for each of C++11/C++14/C++17 that
check whether <bits/extc++.h> is compatible with _GLIBCXX_PARALLEL.
This increases the coverage to (almost) all headers.

If <omp.h> is not available then the tests will trivially pass, because
we don't care about compatibility with _GLIBCXX_PARALLEL in that case.

PR libstdc++/89023
* testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
* testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
* testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
* testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268769 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/17_intro/headers/c++2011/parallel_mode.cc [moved from libstdc++-v3/testsuite/28_regex/headers/regex/parallel_mode.cc with 81% similarity]
libstdc++-v3/testsuite/17_intro/headers/c++2014/parallel_mode.cc [new file with mode: 0644]
libstdc++-v3/testsuite/17_intro/headers/c++2017/parallel_mode.cc [new file with mode: 0644]