2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / chkp-const-check-1.c
blob4170886584f205a41744214c9d2188b7a199babf
1 /* { dg-do compile } */
2 /* { dg-require-effective-target mpx } */
3 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt" } */
4 /* { dg-final { scan-tree-dump-not "bndcl" "chkpopt" } } */
5 /* { dg-final { scan-tree-dump-not "bndcu" "chkpopt" } } */
7 int test (int *p)
9 p = (int *)__builtin___bnd_set_ptr_bounds (p, sizeof (int));
10 return *p;