diff --git a/tests/span_compile_only.cpp b/tests/span_compile_only.cpp index 9839078..bfd01d8 100644 --- a/tests/span_compile_only.cpp +++ b/tests/span_compile_only.cpp @@ -65,7 +65,7 @@ bool bar() span s{v}; ret = ret || (s.size() == 4 && s.data() != nullptr); - int x = s.size() + v.size(); + int x = s[0]+s[1]+s[2]; return ret || x > 23; }