]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/i386/mpx/nested-function-1-lbv.c
Daily bump.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / nested-function-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 mpx_test (int argc, const char **argv)
11 {
12 int a[100];
13
14 void rd (int i)
15 {
16 printf ("%d\n", a[i]);
17 }
18
19 rd (-1);
20
21 return 0;
22 }