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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
vect
/
pr21734_1.cc
blob
dc3ab4bae8b3f8ce2377d73a3cd6e35050e171fe
1
/* { dg-do compile } */
2
3
struct
A
4
{
5
int
a
[
4
];
6
int
&
operator
[](
int
i
) {
return
a
[
i
]; }
7
};
8
9
struct
B
:
public
A
10
{
11
int
&
operator
[](
int
i
) {
return
A
::
operator
[](
i
); }
12
};
13
14
void
foo
(
B
&
b
)
15
{
16
for
(
int
i
=
0
;
i
<
4
; ++
i
)
17
b
[
i
] =
0
;
18
}
19