| 27 | static_assert(!std::is_default_constructible_v<cxx20::span<int, 1>>); |
| 28 | |
| 29 | TEST(SpanTest, Constructors) { |
| 30 | cxx20::span<int> S; |
| 31 | EXPECT_EQ(S.size(), 0U); |
| 32 | EXPECT_EQ(S.data(), nullptr); |
| 33 | |
| 34 | cxx20::span<const int> CS; |
| 35 | EXPECT_EQ(CS.size(), 0U); |
| 36 | EXPECT_EQ(CS.data(), nullptr); |
| 37 | } |
| 38 | |
| 39 | TEST(SpanTest, ConstructorsWithExtent) { |
| 40 | cxx20::span<int, 0> S; |
nothing calls this directly
no test coverage detected