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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
vect
/
pr21734_2.cc
blob
58efedf18f3dba57a21270ab979b87505e22bbe4
1
/* { dg-do compile } */
2
3
struct
A
4
{
5
int
a
[
4
];
6
int
*
operator
[](
int
i
) {
return
&
a
[
i
]; }
7
};
8
9
void
foo
(
A a1
,
A
&
a2
)
10
{
11
a1
[
1
][
1
]=
0
;
12
for
(
int
i
=
0
;
i
<
4
; ++
i
)
13
a2
.
a
[
i
]=
0
;
14
}
15
16
/* { dg-final { cleanup-tree-dump "vect" } } */