1 /* { dg-do compile } */
2 /* { dg-require-effective-target mpx } */
3 /* { dg-require-effective-target mempcpy } */
4 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-fast-string-functions -D_GNU_SOURCE" } */
5 /* { dg-final { scan-tree-dump "mempcpy_nobnd" "chkpopt" } } */
9 void test (int *buf1
, int *buf2
, size_t len
)
11 mempcpy (buf1
, buf2
, len
);