Author: Haojian Wu Date: 2024-10-22T14:39:36+02:00 New Revision: 56f75b5c1510cea7648cad0cb32e4e0810edd0d9
URL: https://github.com/llvm/llvm-project/commit/56f75b5c1510cea7648cad0cb32e4e0810edd0d9 DIFF: https://github.com/llvm/llvm-project/commit/56f75b5c1510cea7648cad0cb32e4e0810edd0d9.diff LOG: Fix the broken test Added: Modified: clang/test/SemaCXX/attr-lifetimebound.cpp Removed: ################################################################################ diff --git a/clang/test/SemaCXX/attr-lifetimebound.cpp b/clang/test/SemaCXX/attr-lifetimebound.cpp index 990e55ce057116..1c5c79777c71c8 100644 --- a/clang/test/SemaCXX/attr-lifetimebound.cpp +++ b/clang/test/SemaCXX/attr-lifetimebound.cpp @@ -330,8 +330,8 @@ struct StatusOr { }; void test(StatusOr<FooView> foo1, StatusOr<NonAnnotatedFooView> foo2) { - foo1 = Foo(); // expected-warning {{object backing the foo1 will be destroyed at the end}} + foo1 = Foo(); // expected-warning {{object backing foo1 will be destroyed at the end}} // This warning is triggered by the lifetimebound annotation, regardless of whether the class type is annotated with GSL. - foo2 = NonAnnotatedFoo(); // expected-warning {{object backing the foo2 will be destroyed at the end}} + foo2 = NonAnnotatedFoo(); // expected-warning {{object backing foo2 will be destroyed at the end}} } } // namespace GH106372 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits