1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
3 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
18 void f(X
); // expected-note{{candidate function}}
20 void g(short s
, Y y
, Z z
) {
24 f(z
); // expected-error{{no matching function}}
33 class FromShortExplicitly
{ // expected-note{{candidate constructor (the implicit copy constructor)}}
34 #if __cplusplus >= 201103L // C++11 or later
35 // expected-note@-2 {{candidate constructor (the implicit move constructor) not viable}}
39 explicit FromShortExplicitly(short s
); // expected-note {{explicit constructor is not a candidate}}
42 void explicit_constructor(short s
) {
45 FromShortExplicitly
fse1(s
);
46 FromShortExplicitly fse2
= s
; // expected-error{{no viable conversion}}
50 struct X1
{ X1(const char&); };