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 | } |
30 |