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
/
pr43220.c
blob
d61dfe8fa35d1870e6316e726c094af38c30d0ee
1
/* { dg-require-effective-target int32plus } */
2
/* { dg-require-effective-target alloca } */
3
4
void
*
volatile
p
;
5
6
int
7
main
(
void
)
8
{
9
int
n
=
0
;
10
lab
:;
11
{
12
int
x
[
n
%
1000
+
1
];
13
x
[
0
] =
1
;
14
x
[
n
%
1000
] =
2
;
15
p
=
x
;
16
n
++;
17
}
18
19
{
20
int
x
[
n
%
1000
+
1
];
21
x
[
0
] =
1
;
22
x
[
n
%
1000
] =
2
;
23
p
=
x
;
24
n
++;
25
}
26
27
if
(
n
<
1000000
)
28
goto
lab
;
29
30
return
0
;
31
}