#include "base/containers/span.h"
static const char s[] = "hi";
static char s2[] = {'a'};
static int f[] = {1};
int main() {
base::span{s};
base::span{s2};
base::span{"wee"};
base::span{f};
}
struct S {
S()
: field1("hi"),
field2(s),
field3(s2)
{}
base::span<const char> field1;
base::span<const char> field2;
base::span<char> field3;
base::span<const char> field4{"hi"};
base::span<const char> field5{s};
base::span<char> field6{s2};
};
struct Nested {
struct span {
span(const char*) {}
};
};
void dont_crash_on_nested_span_class() {
Nested::span("hi");
}