]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add tests for layout_stride.
authorLuc Grosheintz <luc.grosheintz@gmail.com>
Wed, 4 Jun 2025 14:58:52 +0000 (16:58 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Thu, 12 Jun 2025 09:55:12 +0000 (11:55 +0200)
commit4e3dbecb90dec76714474df867bfcc2073ad6a9b
tree9b078bb3128228eeb23488a62e05ea4680717ad9
parent4fc47a8913fdcc560f1da3b66916fd3c4ce25366
libstdc++: Add tests for layout_stride.

Implements the tests for layout_stride and for the features of the other
two layouts that depend on layout_stride.

libstdc++-v3/ChangeLog:

* testsuite/23_containers/mdspan/layouts/class_mandate_neg.cc: Add
tests for layout_stride.
* testsuite/23_containers/mdspan/layouts/ctors.cc: Add test for
layout_stride and the interaction with other layouts.
* testsuite/23_containers/mdspan/layouts/empty.cc: Ditto.
* testsuite/23_containers/mdspan/layouts/mapping.cc: Ditto.
* testsuite/23_containers/mdspan/layouts/stride.cc: New test.

Signed-off-by: Luc Grosheintz <luc.grosheintz@gmail.com>
Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
libstdc++-v3/testsuite/23_containers/mdspan/layouts/class_mandate_neg.cc
libstdc++-v3/testsuite/23_containers/mdspan/layouts/ctors.cc
libstdc++-v3/testsuite/23_containers/mdspan/layouts/empty.cc
libstdc++-v3/testsuite/23_containers/mdspan/layouts/mapping.cc
libstdc++-v3/testsuite/23_containers/mdspan/layouts/stride.cc [new file with mode: 0644]