================
@@ -499,3 +518,28 @@ std::string_view test2(int i, 
std::optional<std::string_view> a) {
   return std::move(a.value());
 }
 }
+
+namespace GH100526 {
+void test() {
+  std::vector<std::string_view> t1 = {std::string()}; // expected-warning 
{{object backing the pointer will be destroyed at the end}}
----------------
hokein wrote:

Yeah, it works. Added this case.



https://github.com/llvm/llvm-project/pull/107213
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to