================ @@ -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]]; +}; ---------------- hokein wrote:
Thanks a lot for these tests. I've added them with some adjustments. 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