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