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.dg
/
tree-ssa
/
foldconst-4.c
blob
0e9b676f66bd10112cad6fe543ecafc49f064aa0
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-ccp2" } */
3
4
struct
a
{
int
a
,
b
;};
5
const static struct
a a
;
6
static int
b
[
10
];
7
int
c
;
8
int
9
test
()
10
{
11
return
a
.
a
+
b
[
c
];
12
}
13
/* { dg-final { scan-tree-dump "return 0;" "ccp2" } } */