summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/chkp-builtins-4.c
blob: d408a490b13085e99e0e83dd2e57505f218badda (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile { target { ! x32 } } } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -fdump-tree-chkp" } */
/* { dg-final { scan-tree-dump-not "bnd_null_ptr_bounds" "chkp" } } */

void *
chkp_test (void *p)
{
  return __builtin___bnd_null_ptr_bounds (p);
}