Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / field-addr-5-nov.c
blobb69895e1d2060a23c39b607510dff905112cff21
1 /* { dg-do run } */
2 /* { dg-options "-fcheck-pointer-bounds -mmpx" } */
5 #include "mpx-check.h"
7 struct S {
8 int a;
9 int b[100];
10 int c;
11 } S;
13 struct S1 {
14 int x;
15 struct S a[10];
16 struct S b;
17 } S1;
19 int foo (int *p, int i)
21 printf ("%d\n", p[i]);
22 return p[i];
25 struct S1 s1;
27 int mpx_test (int argc, const char **argv)
29 foo (&s1.b.b[0], 0);
30 foo (&s1.b.b[0], 99);
32 return 0;