summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/chkp-builtins-3.c
blob: ae30534c6da7d5410f7a12be795fed6c3e2b67c2 (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_set_ptr_bounds" "chkp" } } */

void *
chkp_test (void *p)
{
  return __builtin___bnd_set_ptr_bounds (p, 10);
}