aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/chkp-builtins-2.c
blob: dc62238c5bd87fea3fc4e8024a74dab0f707100f (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-require-effective-target mpx } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -fdump-tree-chkp" } */
/* { dg-final { scan-tree-dump-not "bnd_copy_ptr_bounds" "chkp" } } */

void *
chkp_test (void *p, void *q)
{
  return __builtin___bnd_copy_ptr_bounds (p, q);
}