================
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c++23 -Wlifetime-safety -Wno-dangling 
-verify %s
+// RUN: %clang_cc1 -fsyntax-only -std=c++23 -flifetime-safety-inference 
-fexperimental-lifetime-safety-tu-analysis -Wlifetime-safety -Wno-dangling 
-verify %s
+
+// expected-no-diagnostics
+struct S {
+  static S operator()(int, int&&);
+};
+
+void indexing_with_static_operator() {
+  S()(1, 2);
+}
----------------
usx95 wrote:

Please move this to warn-lifetime-safety.cpp in a separate namespace.

https://github.com/llvm/llvm-project/pull/187853
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to