Sign in
llvm
/
clang
/
25e98e8a3e75a63761ea270fef0a568831866d13
/
.
/
test
/
SemaTemplate
/
ctad.cpp
blob: f2944655b324ef3f152ec02000e5a9e2ba9bb38f [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -std=c++17 -verify %s
// expected-no-diagnostics
namespace
pr41427
{
template
<
typename
T
>
class
A
{
public
:
A
(
void
(*)(
T
))
{}
};
void
D
(
int
)
{}
void
f
()
{
A a
(&
D
);
using
T
=
decltype
(
a
);
using
T
=
A
<int>
;
}
}