Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn20.C
blob: a516bcfb0e84cdad033b74816331c780fdc8ca1f [
file
] [
log
] [
blame
]
// { dg-do compile { target c++14 } }
template
<
class
T
>
auto
f
(
T
)
{
return
42
;
}
template
<
class
T
>
auto
g
(
T
)
{
return
0.0
;
}
int
main
()
{
int
(*
p
)(
int
)
=
&
f
;
// OK
p
=
&
g
;
// { dg-error "no match" }
}