repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr63995-1.C
blob
82e76063ef1893d25878d343010871d14affcd6c
1
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2
/* { dg-require-effective-target mpx } */
3
/* { dg-options "-O2 -g -fcheck-pointer-bounds -mmpx" } */
4
5
int test1 (int i)
6
{
7
extern const int arr[10];
8
return arr[i];
9
}
10
11
extern const int arr[10];
12
13
int test2 (int i)
14
{
15
return arr[i];
16
}