1 /* { dg-do compile { target { ! x32 } } } */
2 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -Wchkp" } */
3 
test(int * p)4 int test (int *p)
5 {
6   p = (int *)__builtin___bnd_set_ptr_bounds (p, sizeof (int));
7   return *(p + 1); /* { dg-warning "memory access check always fail" } */
8 }
9