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