1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
6 template<typename U
> only(U
) = delete; // expected-note {{here}}
9 template<typename
...T
>
11 auto x(t
...); // expected-error {{is empty}} expected-error {{contains multiple expressions}}
16 f(); // expected-note {{here}}
18 f(0, 1); // expected-note {{here}}
30 only
<double*> test
= p
; // expected-error {{conversion function from 'char *' to 'only<double *>'}}
34 bool b
= h('x'); // expected-note {{here}}
36 // PR 9276 - Make sure we check auto types deduce the same
37 // in the case of a dependent initializer
41 auto i
= T(), j
= 0; // expected-error {{deduced as 'long' in declaration of 'i' and deduced as 'int' in declaration of 'j'}}
45 f
<long>(); // expected-note {{here}}
50 namespace NoRepeatedDiagnostic
{
53 auto a
= 0, b
= 0.0, c
= T(); // expected-error {{deduced as 'int' in declaration of 'a' and deduced as 'double' in declaration of 'b'}}
55 // We've already diagnosed an issue. No extra diagnostics is needed for these.
56 template void f
<int>();
57 template void f
<double>();
58 template void f
<char>();