libstdc++: Use c++NN_only effective target to tests
authorJonathan Wakely <jwakely@redhat.com>
Fri, 31 Jul 2020 18:58:02 +0000 (19:58 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 31 Jul 2020 18:58:02 +0000 (19:58 +0100)
commit566f42273467817a31a7a1ae058ba759837eec22
tree3ac17e14b7337954ca02a656f96f2ea75b9751ff
parent6458742a15f899a7d4e7c57bc649119e8f7aa086
libstdc++: Use c++NN_only effective target to tests

Some tests really are only intended for a specific -std mode, so add a
target selector to make that explicit.

Also reorder the dg-do directives to come after the dg-options ones, so
that the target selector in the dg-do directive is applied after the
dg-options that sets the -std option.

libstdc++-v3/ChangeLog:

* testsuite/20_util/reference_wrapper/83427.cc: Adjust
effective-target to specific language mode only.
* testsuite/24_iterators/headers/iterator/range_access_c++11.cc:
Likewise.
* testsuite/24_iterators/headers/iterator/range_access_c++14.cc:
Likewise.
* testsuite/24_iterators/headers/iterator/synopsis_c++11.cc:
Likewise.
* testsuite/24_iterators/headers/iterator/synopsis_c++14.cc:
Likewise.
* testsuite/26_numerics/valarray/69116.cc:
Likewise.
* testsuite/30_threads/headers/condition_variable/std_c++0x_neg.cc:
Remove whitespace at end of file.
* testsuite/30_threads/headers/future/std_c++0x_neg.cc:
Likewise.
libstdc++-v3/testsuite/20_util/reference_wrapper/83427.cc
libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access_c++11.cc
libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access_c++14.cc
libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis_c++11.cc
libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis_c++14.cc
libstdc++-v3/testsuite/26_numerics/valarray/69116.cc
libstdc++-v3/testsuite/30_threads/headers/condition_variable/std_c++0x_neg.cc
libstdc++-v3/testsuite/30_threads/headers/future/std_c++0x_neg.cc