]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Enable std::auto_ptr tests for C++11 and later
authorJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 13:25:14 +0000 (14:25 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 15:24:35 +0000 (16:24 +0100)
commit678834e9ff541f4a5b1065357e94e863b6f34913
tree5fd7ef70d93c14f7987085d30cf12c18678e05fb
parentaffbb7b4322a01cecddaa4dfb70faee925a2348b
libstdc++: Enable std::auto_ptr tests for C++11 and later

There is no reason to only test std::auto_ptr with -std=c++03, we just
need to handle the deprecated warnings for C++11 and later.

libstdc++-v3/ChangeLog:

* testsuite/20_util/auto_ptr/1.cc: Remove dg-options -std=c++03
and add dg-warning for deprecation warnings.
* testsuite/20_util/auto_ptr/2.cc: Likewise.
* testsuite/20_util/auto_ptr/3.cc: Likewise.
* testsuite/20_util/auto_ptr/3946.cc: Likewise.
* testsuite/20_util/auto_ptr/4.cc: Likewise.
* testsuite/20_util/auto_ptr/5.cc: Likewise.
* testsuite/20_util/auto_ptr/6.cc: Likewise.
* testsuite/20_util/auto_ptr/7.cc: Likewise.
* testsuite/20_util/auto_ptr/assign_neg.cc: Likewise.
* testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc:
Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
Likewise.
16 files changed:
libstdc++-v3/testsuite/20_util/auto_ptr/1.cc
libstdc++-v3/testsuite/20_util/auto_ptr/2.cc
libstdc++-v3/testsuite/20_util/auto_ptr/3.cc
libstdc++-v3/testsuite/20_util/auto_ptr/3946.cc
libstdc++-v3/testsuite/20_util/auto_ptr/4.cc
libstdc++-v3/testsuite/20_util/auto_ptr/5.cc
libstdc++-v3/testsuite/20_util/auto_ptr/6.cc
libstdc++-v3/testsuite/20_util/auto_ptr/7.cc
libstdc++-v3/testsuite/20_util/auto_ptr/assign_neg.cc
libstdc++-v3/testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc
libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc
libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc
libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc
libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc
libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc
libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc