Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / chkp-const-check-2.c
blob18e497a0b92aee3dda571fec67b8f8fb12a27687
1 /* { dg-do compile } */
2 /* { dg-require-effective-target mpx } */
3 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -Wchkp" } */
5 int test (int *p)
7 p = (int *)__builtin___bnd_set_ptr_bounds (p, sizeof (int));
8 return *(p + 1); /* { dg-warning "memory access check always fail" "" } */