]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/i386/mpx/static-init-1-lbv.c
7c0367e01e79e81da07ca876d09cfcef69314364
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / static-init-1-lbv.c
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
10 int buf[100];
11 int *p = buf;
12
13 int mpx_test (int argc, const char *argv[])
14 {
15 printf ("%d\n", p[-1]);
16
17 return 0;
18 }