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
/
arm
/
constant-pool.c
blob
8427dfb1a80f5a1c933b12b9b486e5308c06023a
1
/* { dg-do run } */
2
/* { dg-options "-O1" } */
3
4
unsigned short
v
=
0x5678
;
5
int
i
;
6
int
j
=
0
;
7
int
*
ptr
= &
j
;
8
9
int
10
func
(
void
)
11
{
12
for
(
i
=
0
;
i
<
1
; ++
i
)
13
{
14
*
ptr
= -
1
;
15
v
=
0x1234
;
16
}
17
return
v
;
18
}
19
20
int
21
main
(
void
)
22
{
23
func
();
24
if
(
v
!=
0x1234
)
25
__builtin_abort
();
26
return
0
;
27
}