Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / pointer-arg-4-ubv.c
blobcf3a5c48f1b7d2d6d1e59c650ea5ffedb9afbb41
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];
11 int buf1[10];
13 int rd (int *t1, int *t2, int *t3, int *t4, int *p, int i)
15 int res = p[i];
16 printf ("%d\n", res);
17 return res;
20 int mpx_test (int argc, const char **argv)
22 int *p;
24 rd (buf1, buf1, buf1, buf1, buf, 100);
26 return 0;