Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
c-c++-common
/
pr46562-2.c
blob: 3c644040179778fb035317c04859a62625a1eaeb [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O -fno-tree-ccp -fno-tree-forwprop -fdump-tree-fre1" } */
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;" "fre1" } } */