Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr60390.C
blob: 5cd5539f82e81bb92cd87592ef5fc686d34958d6 [
file
] [
log
] [
blame
]
// PR c++/60390
// { dg-do compile { target c++1y } }
// { dg-options "" }
struct
A
{
void
foo
(
auto
);
};
class
B
{
int
m
;
friend
void
A
::
foo
(
auto
);
};
void
A
::
foo
(
auto
i
)
{
B b
;
b
.
m
=
i
;
}
int
main
()
{
A a
;
a
.
foo
(
7
);
}