Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto55.C
blob: 5bd32ac890db2dfab065f44766529818c8160bb8 [
file
] [
log
] [
blame
]
// PR c++/98441
// { dg-do compile { target c++11 } }
struct
a
{
int
&
mfn
();
};
void
fn
()
{
int
&
(
a
::*
myvar1
)(
void
)
=
&
a
::
mfn
;
auto
&
(
a
::*
myvar2
)(
void
)
=
&
a
::
mfn
;
auto
(
a
::*
myvar3
)(
void
)
=
&
a
::
mfn
;
}