We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91c1157 commit 56f75b5Copy full SHA for 56f75b5
clang/test/SemaCXX/attr-lifetimebound.cpp
@@ -330,8 +330,8 @@ struct StatusOr {
330
};
331
332
void test(StatusOr<FooView> foo1, StatusOr<NonAnnotatedFooView> foo2) {
333
- 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}}
334
// 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}}
+ foo2 = NonAnnotatedFoo(); // expected-warning {{object backing foo2 will be destroyed at the end}}
336
}
337
} // namespace GH106372
0 commit comments