Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
array6.C
blob: 1ffc42a59d1ecd864896f5d3d67c839b2ec23fa2 [
file
] [
log
] [
blame
]
// { dg-do run }
// { dg-options "-O1" }
int
count
=
0
;
double
foo
()
{
count
++;
return
0
;
}
double
bar
()
{
const
double
x
[
1
]
=
{
foo
()
};
return
x
[
0
];
}
int
main
()
{
bar
();
if
(
count
!=
1
)
return
1
;
}