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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
mpx
/
builtin-bnd-narrow-ptr-bounds-3-nov.c
blob
0c13b123d8ff2ecb58b9672a7f595b054830a2bc
1
/* { dg-do run } */
2
/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
3
4
5
#include
"mpx-check.h"
6
7
int
buf
[
100
];
8
9
int
mpx_test
(
int
argc
,
const char
**
argv
)
10
{
11
int
*
p
=
__bnd_narrow_ptr_bounds
(
buf
+
10
,
buf
,
sizeof
(
int
) *
100
);
12
p
[
0
] =
argc
;
13
p
[
89
] =
argc
;
14
return
0
;
15
}