Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr43905.C
blob: 259ea785041471f61d71657b8b7369c0de832eaf [
file
] [
log
] [
blame
]
extern
void
sf
(
__const
char
*);
struct
Matrix
{
int
operator
[](
int
n
){
sf
(
__PRETTY_FUNCTION__
);
return
0
;
}
int
operator
[](
int
n
)
const
{
sf
(
__PRETTY_FUNCTION__
);
return
0
;
}
};
void
calcmy
(
Matrix
const
&
b
,
Matrix
&
c
,
int
k
){
b
[
k
];
c
[
k
];
}