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
Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git]
/
gcc-4_9
/
gcc
/
testsuite
/
c-c++-common
/
pr46562-2.c
blob
45bf5cf71957ebe16a78d586de6fe1e3dae2cec9
1
/* { dg-do compile } */
2
/* { dg-options "-O -fno-tree-ccp -fno-tree-forwprop -fdump-tree-fre1" } */
3
4
static const int
a
[
4
] = {};
5
int
foo
(
void
)
6
{
7
int
i
=
1
;
8
const int
*
p
= &
a
[
i
];
9
return
*
p
;
10
}
11
12
/* { dg-final { scan-tree-dump "= 0;" "fre1" } } */
13
/* { dg-final { cleanup-tree-dump "fre1" } } */