Skip to content

Commit 56f75b5

Browse files
committed
Fix the broken test
1 parent 91c1157 commit 56f75b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/SemaCXX/attr-lifetimebound.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ struct StatusOr {
330330
};
331331

332332
void test(StatusOr<FooView> foo1, StatusOr<NonAnnotatedFooView> foo2) {
333-
foo1 = Foo(); // expected-warning {{object backing the foo1 will be destroyed at the end}}
333+
foo1 = Foo(); // expected-warning {{object backing foo1 will be destroyed at the end}}
334334
// This warning is triggered by the lifetimebound annotation, regardless of whether the class type is annotated with GSL.
335-
foo2 = NonAnnotatedFoo(); // expected-warning {{object backing the foo2 will be destroyed at the end}}
335+
foo2 = NonAnnotatedFoo(); // expected-warning {{object backing foo2 will be destroyed at the end}}
336336
}
337337
} // namespace GH106372

0 commit comments

Comments
 (0)