repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
vect
/
pr21218.cc
blob
73331d22702ed2ae4d0b27810fbb63edf6017d01
1
/* { dg-do compile } */
2
3
struct
A
4
{
5
double
d
[
2
];
6
double
foo
(
int
i
) {
return
d
[
i
]; }
7
};
8
9
struct
B
:
public
A
{};
10
11
void
bar
(
B
&
b
)
12
{
13
for
(
int
i
=
0
;
i
<
2
; ++
i
)
14
b
.
d
[
i
] =
b
.
foo
(
i
);
15
}
16
17
/* { dg-final { cleanup-tree-dump "vect" } } */
18