]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Prepare test code for default_accessor for reuse.
authorLuc Grosheintz <luc.grosheintz@gmail.com>
Wed, 23 Jul 2025 09:25:52 +0000 (11:25 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Wed, 23 Jul 2025 11:23:37 +0000 (13:23 +0200)
commit9acdbf81eef6db74502a9b704ba08e5a84dfb5fa
tree9ef0090025af7b47b3425a47701fbe513359d88d
parent9bb9a3e284e033a30c2ef1b73d39d6efc92fd7f0
libstdc++: Prepare test code for default_accessor for reuse.

All test code of default_accessor can be reused. This commit moves
the reuseable code into a file generic.cc and prepares the tests for
reuse with aligned_accessor.

libstdc++-v3/ChangeLog:

* testsuite/23_containers/mdspan/accessors/default.cc: Delete.
* testsuite/23_containers/mdspan/accessors/generic.cc: Slightly
generalize the test code previously in default.cc.

Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
Signed-off-by: Luc Grosheintz <luc.grosheintz@gmail.com>
libstdc++-v3/testsuite/23_containers/mdspan/accessors/default.cc [deleted file]
libstdc++-v3/testsuite/23_containers/mdspan/accessors/generic.cc [new file with mode: 0644]