Avoid memcpy inline expansion in gcc.dg/out-of-bounds-1.c
This avoids inline expansion to preserve the warning by making the memcpy size a non-power-of-two as suggested by Martin Sebor. 2021-09-29 Richard Biener <rguenther@suse.de> * gcc.dg/out-of-bounds-1.c: Make memcpied size not power-of-two.
This commit is contained in:
parent
fd1334791e
commit
2da5ec9851
1 changed files with 1 additions and 1 deletions
|
@ -8,6 +8,6 @@
|
|||
void ProjectOverlay(const float localTextureAxis[2], char *lump)
|
||||
{
|
||||
const void *d = &localTextureAxis;
|
||||
int size = sizeof(float)*8 ;
|
||||
int size = sizeof(float)*7 ;
|
||||
__builtin_memcpy( &lump[ 0 ], d, size ); /* { dg-warning "reading" } */
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue