Add a note.
gcc/testsuite/ChangeLog: * gcc.dg/Wstringop-overflow-47.c: Add a note.
This commit is contained in:
parent
92a30040c8
commit
f2a5cdff04
@ -26,7 +26,7 @@ void nowarn_c32 (char c)
|
||||
|
||||
void warn_c32 (char c)
|
||||
{
|
||||
extern char warn_a32[32]; // { dg-message "at offset 32 to object 'warn_a32' with size 32" }
|
||||
extern char warn_a32[32]; // { dg-message "at offset 32 to object 'warn_a32' with size 32" "note" }
|
||||
|
||||
void *p = warn_a32 + 1;
|
||||
*(C32*)p = (C32){ c }; // { dg-warning "writing 1 byte into a region of size 0" }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user