================
@@ -95,7 +95,8 @@ void conditional_operator_lifetimebound(int cond) {
int a, b;
p = identity(cond ? &a // expected-warning {{local variable 'a' does
not live long enough}}
: &b); // expected-warning {{local variable 'b' does
not live long enough}}
- } // expected-note 2 {{destroyed here}}
+ } // expected-note {{local variable 'a' is
destroyed here}}
+ // expected-note@-1 {{local variable 'b' is
destroyed here}}
----------------
iitianpushkar wrote:
OK!
https://github.com/llvm/llvm-project/pull/204900
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits