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

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