summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/chkp-builtins-1.c
blob: 99cfa82681cbba02a80e6efa220014a52f2ec089 (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_init_ptr_bounds" "chkp" } } */

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