]>
git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p17.cpp
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 template<int i
> class A
{ };
4 template<short s
> void f(A
<s
>); // expected-note{{candidate template ignored: substitution failure}}
8 f(a
); // expected-error{{no matching function for call}}
11 template<const short cs
> class B
{ };
12 template<short s
> void g(B
<s
>);
15 g(b
); // OK: cv-qualifiers are ignored on template parameter types
18 template<short s
> void h(int (&)[s
]); // expected-note{{candidate function template not viable: requires 1 argument, but 2 were provided}}
25 template<short s
> void h(int (&)[s
], A
<s
>); // expected-note{{candidate template ignored: substitution failure}}
29 h(array
, a
); // expected-error{{no matching function for call}}