blob: 891adb4f293d95df62f58ca77afed067aa2c1649 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile { target { ! x32 } } } */
/* { dg-require-effective-target mempcpy } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-nochk-string-functions -fchkp-use-fast-string-functions -D_GNU_SOURCE" } */
/* { dg-final { scan-tree-dump "mempcpy_nobnd_nochk" "chkpopt" } } */
#include "string.h"
void test (int *buf1, int *buf2, size_t len)
{
mempcpy (buf1, buf2, len);
}
|