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 middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr48814-1.c
blob
452aaab30f9593d1116d3d94d7c9b0f46fc76468
1
extern
void
abort
(
void
);
2
3
int
arr
[] = {
1
,
2
,
3
,
4
};
4
int
count
=
0
;
5
6
int
__attribute__
((
noinline
))
7
incr
(
void
)
8
{
9
return
++
count
;
10
}
11
12
int
main
()
13
{
14
arr
[
count
++] =
incr
();
15
if
(
count
!=
2
||
arr
[
count
] !=
3
)
16
abort
();
17
return
0
;
18
}