]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Fix tests that fail in C++98 mode
authorJonathan Wakely <jwakely@redhat.com>
Tue, 11 May 2021 16:14:26 +0000 (17:14 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 11 May 2021 19:50:09 +0000 (20:50 +0100)
commita46434cf23b999a5a37a1f3183a71e2a939b8f06
treeaeef84ac4b1e8ad97d016b3e3eed7c732a7c76a0
parentdb9dec545bf7c5be3120412444553ff993c7200d
libstdc++: Fix tests that fail in C++98 mode

The header synopsis test fails to define NOTHROW for C++98.

The shared_ptr test should be skipped for C++98.

The debug mode one should work for C++98 too, it just needs to avoid
C++11 syntax that isn't valid in C++98.

libstdc++-v3/ChangeLog:

* testsuite/20_util/headers/memory/synopsis.cc: Define C++98
alternative for macro.
* testsuite/20_util/shared_ptr/creation/99006.cc: Add effective
target keyword.
* testsuite/25_algorithms/copy/debug/99402.cc: Avoid C++11
syntax.

(cherry picked from commit 37407a2ae701c0a93377106a2938ab5474062fc3)
libstdc++-v3/testsuite/20_util/headers/memory/synopsis.cc
libstdc++-v3/testsuite/20_util/shared_ptr/creation/99006.cc
libstdc++-v3/testsuite/25_algorithms/copy/debug/99402.cc
This page took 0.060733 seconds and 6 git commands to generate.