]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/i386/mpx/pointer-arg-4-ubv.c
Daily bump.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / pointer-arg-4-ubv.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 buf1[10];
12
13 int rd (int *t1, int *t2, int *t3, int *t4, int *p, int i)
14 {
15 int res = p[i];
16 printf ("%d\n", res);
17 return res;
18 }
19
20 int mpx_test (int argc, const char **argv)
21 {
22 int *p;
23
24 rd (buf1, buf1, buf1, buf1, buf, 100);
25
26 return 0;
27 }