Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
c-c++-common
/
pr46562.c
blob: c6b85748d8497b69fd4138a00a988bfa93bd518b [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-ccp1" } */
static
const
int
a
[
4
]
=
{};
int
foo
(
void
)
{
int
i
=
1
;
const
int
*
p
=
&
a
[
i
];
return
*
p
;
}
/* { dg-final { scan-tree-dump "return 0;" "ccp1" } } */