Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / pointer-arg-3-nov.c
blobe42ecba4e2a51e97d84b1fda64201134ebd2a181
1 /* { dg-do run } */
2 /* { dg-options "-fcheck-pointer-bounds -mmpx" } */
5 #include "mpx-check.h"
7 int buf[100];
9 int rd (int t1, int t2, int t3, int t4, int t5, int t6, int *p, int i)
11 int res = p[i];
12 printf ("%d\n", res);
13 return res;
16 int mpx_test (int argc, const char **argv)
18 int *p;
20 rd (0, 0, 0, 0, 0, 0, buf, 0);
21 rd (0, 0, 0, 0, 0, 0, buf, 99);
23 return 0;