]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/i386/mpx/builtin-bnd-chk-ptr-bounds-1-lbv.c
Daily bump.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / builtin-bnd-chk-ptr-bounds-1-lbv.c
CommitLineData
ee8f136a
IE
1/* { dg-do run } */
2/* { dg-shouldfail "bounds violation" } */
3/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
4
5
6#define SHOULDFAIL
7
8#include "mpx-check.h"
9
10int buf[100];
11
12int mpx_test (int argc, const char **argv)
13{
14 __bnd_chk_ptr_bounds (buf - 1, sizeof (int));
15 return 0;
16}