mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
413f3c5595
From http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1584, function type should not match cv-qualified type in template argument deduction. This also matches what GCC and EDG do in template argument deduction. Differential Revision: https://reviews.llvm.org/D45755 llvm-svn: 331424
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);
|
|
}
|