Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / static-init-2-ubv.c
blob3681ebe03ea627607ffbd2efa935ecbed378f731
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 struct s {
11 int a;
12 int *p;
13 } s;
15 int buf[100];
17 struct s s1 = {0, buf};
19 int mpx_test (int argc, const char *argv[])
21 printf ("%d\n", s1.p[100]);
23 return 0;