Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / builtin-bnd-store-ptr-bounds-1-ubv.c
blob62aca8c131bc500742603f5e5908212462cdf4d2
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];
11 int *p;
13 int mpx_test (int argc, const char **argv)
15 int *p1 = __bnd_set_ptr_bounds (buf + 10, sizeof (int) * 10);
16 p = buf;
17 __bnd_store_ptr_bounds ((void **)&p, p1 - 10);
18 p[20] = argc;
19 return 0;