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 tree-optimization/81384 - built-in form of strnlen missing
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20040811-1.c
blob
f7a4de93dbff8c112cfd1828596bbef4551160be
1
/* { dg-require-effective-target int32plus } */
2
/* { dg-require-effective-target alloca } */
3
4
/* Ensure that we deallocate X when branching back before its
5
declaration. */
6
7
void
*
volatile
p
;
8
9
int
10
main
(
void
)
11
{
12
int
n
=
0
;
13
lab
:;
14
int
x
[
n
%
1000
+
1
];
15
x
[
0
] =
1
;
16
x
[
n
%
1000
] =
2
;
17
p
=
x
;
18
n
++;
19
if
(
n
<
1000000
)
20
goto
lab
;
21
return
0
;
22
}