2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / chkp-stropt-3.c
bloba8da83b5ec4b66ee405308405970dc2b536c0e5d
1 /* { dg-do compile } */
2 /* { dg-require-effective-target mpx } */
3 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt -fchkp-use-nochk-string-functions" } */
4 /* { dg-final { scan-tree-dump "memmove_nochk" "chkpopt" } } */
6 #include "string.h"
8 void test (int *buf1, int *buf2, size_t len)
10 memmove (buf1, buf2, len);