2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / chkp-const-check-2.c
blob683c21ddbe7aa6c00e8127dc9ab03b2fe05024fa
1 /* { dg-do compile { target { ! x32 } } } */
2 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -Wchkp" } */
4 int test (int *p)
6 p = (int *)__builtin___bnd_set_ptr_bounds (p, sizeof (int));
7 return *(p + 1); /* { dg-warning "memory access check always fail" "" } */