Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
vect
/
pr21734_2.cc
blob: 71fe4a69d7792ebaf88dd983d162d77ef4a6cf8d [
file
] [
log
] [
blame
]
/* { dg-do compile } */
struct
A
{
int
a
[
4
];
int
*
operator
[](
int
i
)
{
return
&
a
[
i
];
}
};
void
foo
(
A a1
,
A
&
a2
)
{
a1
[
1
][
1
]=
0
;
for
(
int
i
=
0
;
i
<
4
;
++
i
)
a2
.
a
[
i
]=
0
;
}