2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / testsuite / g++.dg / pr63995-1.C
blob82e76063ef1893d25878d343010871d14affcd6c
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-require-effective-target mpx } */
3 /* { dg-options "-O2 -g -fcheck-pointer-bounds -mmpx" } */
5 int test1 (int i)
7   extern const int arr[10];
8   return arr[i];
11 extern const int arr[10];
13 int test2 (int i)
15   return arr[i];