repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (163495:164578).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
foldconst-4.c
blob
b416d371e98e44ad0608439fdb28c73b95e974e2
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
test
()
9
{
10
return
a
.
a
+
b
[
c
];
11
}
12
/* { dg-final { scan-tree-dump "return 0;" "ccp2" } } */
13
/* { dg-final { cleanup-tree-dump "ccp2" } } */