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
Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arc
/
loop-2.cpp
blob
d1dc917ba47904329e3855a58de294f271755fb9
1
/* { dg-options "-O2" } *
2
/* { dg-do assemble } */
3
4
/* This file fails to assemble if we forgot to increase the number of
5
uses for loop's start and end labels. */
6
int
a
,
c
,
d
;
7
int
*
b
;
8
void
fn1
(
int
p1
) {
9
if
(
d
==
5
)
10
for
(
int
i
;
i
<
p1
; ++
i
)
11
if
(
c
)
12
b
[
i
] =
c
;
13
else
14
int
t
=
a
=
t
;
15
else
16
for
(
int
i
;
i
<
p1
; ++
i
)
17
b
[
i
] =
0
;
18
}