diff --git a/tests/span_compile_only.cpp b/tests/span_compile_only.cpp index f8a77f7..5c9da6d 100644 --- a/tests/span_compile_only.cpp +++ b/tests/span_compile_only.cpp @@ -48,6 +48,9 @@ bool foo() span cs; ret = ret || (cs.size() == 0 && cs.data() == nullptr); + span s2{}; + ret = ret || (s2.size() == 0 && s2.data() == nullptr); + return ret; } }