mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 11:16:07 +00:00
30 lines
438 B
C++
30 lines
438 B
C++
![]() |
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||
|
// expected-no-diagnostics
|
||
|
|
||
|
template<class _Ty> inline
|
||
|
void testparam(_Ty **, _Ty **)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
template<class _Ty> inline
|
||
|
void testparam(_Ty *const *, _Ty **)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
template<class _Ty> inline
|
||
|
void testparam(_Ty **, const _Ty **)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
template<class _Ty> inline
|
||
|
void testparam(_Ty *const *, const _Ty **)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void case0()
|
||
|
{
|
||
|
void (**p1)();
|
||
|
void (**p2)();
|
||
|
testparam(p1, p2);
|
||
|
}
|