d: Merge dmd, druntime c7902293d7, phobos 03aeafd20
[gcc.git] / libstdc++-v3 / testsuite / 23_containers / span / 117966.cc
blob8bbb5ca1e079afa32b2f7b4921f5f15837198f88
1 // { dg-options "-D_GLIBCXX_DEBUG" }
2 // { dg-do compile { target c++20 } }
4 // Bug 117966
5 // constexpr std::span construction fails to compile with D_GLIBCXX_DEBUG
7 #include <array>
8 #include <span>
10 struct A {
11 constexpr A(std::span<const unsigned char>) {}
13 constexpr A val{std::array<unsigned char, 2>{0x11, 0x22}};