================ @@ -633,4 +633,12 @@ std::optional<int*> test4(int a) { return std::make_optional(nullptr); // fine } +template <typename T> +struct [[gsl::Owner]] StatusOr { + const T &value() [[clang::lifetimebound]]; +}; ---------------- usx95 wrote:
This is a nice test case for coverage of interactions between these two annotations. Can you add more test cases (even if they were passing earlier) ? https://github.com/llvm/llvm-project/pull/108344 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits