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
PR inline-asm/84742
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
chkp-lifetime-1.c
blob
70b8b38dc2856b900f619ddb6ebbfe60d067d8e0
1
/* { dg-do compile { target { ! x32 } } } */
2
/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-chkpopt-details" } */
3
/* { dg-final { scan-tree-dump "Moving creation of \[^ \]+ down to its use" "chkpopt" } } */
4
5
extern
int
arr
[];
6
7
int
test
(
int
i
)
8
{
9
int
res
;
10
if
(
i
>=
0
)
11
res
=
arr
[
i
];
12
else
13
res
= -
i
;
14
return
res
;
15
}