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
2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
chkp-bndret.c
blob
d84ea70dcda70f943dee6b4485a441130a81d88c
1
/* { dg-do compile { target { ! x32 } } } */
2
/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkp" } */
3
/* { dg-final { scan-tree-dump-not "bndret" "chkp" } } */
4
5
#include
"string.h"
6
7
extern
int
*
test1
(
int
*
p
)
__attribute__
((
bnd_legacy
));
8
9
int
*
10
test2
(
int
*
p
)
11
{
12
return
test1
(
p
);
13
}