diff --git a/clang/test/Analysis/osobject-retain-release.cpp b/clang/test/Analysis/osobject-retain-release.cpp --- a/clang/test/Analysis/osobject-retain-release.cpp +++ b/clang/test/Analysis/osobject-retain-release.cpp @@ -155,20 +155,12 @@ void use_always_write_into_two_out_params_leak() { OSObject *obj1; OSObject *obj2; - always_write_into_two_out_params( - &obj1, &obj2); // expected-note-re{{Call to function - // 'always_write_into_two_out_params' writes an OSObject of - // type 'OSObject' with a +1 retain count into an out - // parameter 'a'{{$}}}} expected-note-re@-1{{Call to - // function 'always_write_into_two_out_params' writes an - // OSObject of type 'OSObject' with a +1 retain count into - // an out parameter 'b'{{$}}}} + always_write_into_two_out_params(&obj1, &obj2); // expected-note-re{{Call to function 'always_write_into_two_out_params' writes an OSObject of type 'OSObject' with a +1 retain count into an out parameter 'a'{{$}}}} + // expected-note-re@-1{{Call to function 'always_write_into_two_out_params' writes an OSObject of type 'OSObject' with a +1 retain count into an out parameter 'b'{{$}}}} } // expected-warning{{Potential leak of an object stored into 'obj1'}} // expected-warning@-1{{Potential leak of an object stored into 'obj2'}} - // expected-note@-2{{Object leaked: object allocated and stored into 'obj1' is - // not referenced later in this execution path and has a retain count of +1}} - // expected-note@-3{{Object leaked: object allocated and stored into 'obj2' is - // not referenced later in this execution path and has a retain count of +1}} + // expected-note@-2{{Object leaked: object allocated and stored into 'obj1' is not referenced later in this execution path and has a retain count of +1}} + // expected-note@-3{{Object leaked: object allocated and stored into 'obj2' is not referenced later in this execution path and has a retain count of +1}} char *write_into_out_param_on_nonnull(OS_RETURNS_RETAINED OSObject **obj);