brintos

brintos / llvm-project-archived public Read only

0
0
Text · 438 B · 97d1607 Raw
30 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3 4template<class _Ty> inline5	void testparam(_Ty **, _Ty **)6	{7	}8 9template<class _Ty> inline10	void testparam(_Ty *const *, _Ty **)11	{12	}13 14template<class _Ty> inline15	void testparam(_Ty **, const _Ty **)16	{17	}18 19template<class _Ty> inline20	void testparam(_Ty *const *, const _Ty **)21	{22	}23 24void case0()25{26    void (**p1)();27    void (**p2)();28    testparam(p1, p2);29}30