libstdc++: Fix bug in std::span test
authorJonathan Wakely <jwakely@redhat.com>
Thu, 5 Dec 2019 13:50:08 +0000 (13:50 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 5 Dec 2019 13:50:08 +0000 (13:50 +0000)
commit5a784d350c57d670775471bec847370ed7677666
tree6fff962fc5ffc046b9deaeae78bb11a68c8157e2
parenta7922ddf481b048c0aaa5fae9d836d656e08d850
libstdc++: Fix bug in std::span test

The previous commit fixed the std::span constructors from const arrays,
revealing a bug in this test.

* testsuite/23_containers/span/lwg3255.cc: Fix test. Constructing a
span of non-const elements should not be possible from a const array
or an array of const elements.

From-SVN: r279001
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/23_containers/span/lwg3255.cc