Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / reference-3-nov.cpp
blob9a5519318a4ac1676d18f4158142cd67ee7f5fa4
1 /* { dg-do run } */
2 /* { dg-options "-fcheck-pointer-bounds -mmpx" } */
5 #include "mpx-check.h"
7 int buf[100];
8 int buf1[10];
10 int rd (int (&p)[100], int i)
12 int res = p[i];
13 printf ("%d\n", res);
14 return res;
17 int mpx_test (int argc, const char **argv)
19 int *p;
21 rd (buf, 0);
22 rd (buf, 99);
24 return 0;