2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / chkp-stropt-4.c
bloba68d8fb0e40e98e8c53b4bc8083002fc8bac50f0
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-nochk-string-functions -D_GNU_SOURCE" } */
5 /* { dg-final { scan-tree-dump "mempcpy_nochk" "chkpopt" } } */
7 #include "string.h"
9 void test (int *buf1, int *buf2, size_t len)
11 mempcpy (buf1, buf2, len);