(root)/
gcc-13.2.0/
libstdc++-v3/
testsuite/
23_containers/
span/
101411.cc
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
#include <span>

// PR libstdc++/101411

void f(std::span<const int> s)
{
  std::as_writable_bytes(s); // { dg-error "no matching function" }
}

void f1(std::span<const int, 1> s)
{
  std::as_writable_bytes(s); // { dg-error "no matching function" }
}