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