Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / builtin-bnd-narrow-ptr-bounds-2-ubv.c
blob6ff90cee593ec2e7bde6a6c150bdaa3cca1e457d
1 /* { dg-do run } */
2 /* { dg-shouldfail "bounds violation" } */
3 /* { dg-options "-fcheck-pointer-bounds -mmpx" } */
6 #define SHOULDFAIL
8 #include "mpx-check.h"
10 int buf[100];
12 int mpx_test (int argc, const char **argv)
14 int *p = __bnd_narrow_ptr_bounds (buf - 10, buf, sizeof (int) * 20);
15 p[20] = argc;
16 return 0;