Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / builtin-bnd-copy-ptr-bounds-2-lbv.c
bloba7317e71785cceba27fc939e25a20a62ceb5ecad
1 /* { dg-do run } */
2 /* { dg-shouldfail "bounds violation" } */
3 /* { dg-options "-fcheck-pointer-bounds -mmpx" } */
6 #define SHOULDFAIL
8 #include "mpx-check.h"
10 int buf[100];
12 int mpx_test (int argc, const char **argv)
14 int *p = __bnd_set_ptr_bounds (buf + 10, sizeof (int) * 10);
15 int *p1 = __bnd_copy_ptr_bounds (buf, p);
16 p1[9] = argc;
17 return 0;