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
Use -fcf-protection=return in cet-intrin-4.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
chkp-strchr.c
blob
01ee619dfd91dfd318ff3599125f861a40788fe2
1
/* { dg-do compile { target { ! x32 } } } */
2
/* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */
3
4
#include
"string.h"
5
6
static char
*
7
test1
(
char
*
str
)
8
{
9
return
strrchr
(
str
,
'_'
);
10
}
11
12
char
*
13
test2
()
14
{
15
return
test1
(
"test_string"
);
16
}