blob: dbc13c5c75fbddff399e3c9383a6888e49aa58aa [file] [log] [blame]
// { 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" }
}