Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / reference-3-ubv.cpp
blob0a874fabb0951a428924bcf26473506f2db575f6
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 (&p)[100], 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 (buf, 100);
26 return 0;