Clang Project

clang_source_code/test/SemaTemplate/function-pointer-qualifier.cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2// expected-no-diagnostics
3
4template<class _Ty> inline
5 void testparam(_Ty **, _Ty **)
6 {
7 }
8
9template<class _Ty> inline
10 void testparam(_Ty *const *, _Ty **)
11 {
12 }
13
14template<class _Ty> inline
15 void testparam(_Ty **, const _Ty **)
16 {
17 }
18
19template<class _Ty> inline
20 void testparam(_Ty *const *, const _Ty **)
21 {
22 }
23
24void case0()
25{
26    void (**p1)();
27    void (**p2)();
28    testparam(p1, p2);
29}
30