================
@@ -243,11 +243,12 @@ template <int A, int B>
void call_memcpy_dep() {
char bufferA[A];
char bufferB[B];
- memcpy(bufferA, bufferB, 10); // expected-warning{{'memcpy' will always
overflow; destination buffer has size 9, but size argument is 10}}
+ memcpy(bufferA, bufferB, 10); // expected-warning{{'memcpy' will always
overflow; destination buffer has size 9, but size argument is 10}} \
+ // expected-warning{{'memcpy' reading 10 bytes
from a region of size 9}}
----------------
steakhal wrote:
I sometimes just put an `expected-warning@-1`, `expected-warning@-2` right
below what I'm testing. That feels a lot more lightweight than putting an
anchor to the desired line.
https://github.com/llvm/llvm-project/pull/183004
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits