2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / chkp-stropt-8.c
blob67c34e05e602446a7d7dda8aa507c06e6db50e7d
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" } } */
7 #include "string.h"
9 void test (int *buf1, int *buf2, size_t len)
11 mempcpy (buf1, buf2, len);