diff options
Diffstat (limited to 'clang/test/CXX')
| -rw-r--r-- | clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-cxx03-extra-copy.cpp | 6 | ||||
| -rw-r--r-- | clang/test/CXX/drs/dr0xx.cpp | 6 | ||||
| -rw-r--r-- | clang/test/CXX/drs/dr1xx.cpp | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-cxx03-extra-copy.cpp b/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-cxx03-extra-copy.cpp index 494cfb57670..7a5caef36e7 100644 --- a/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-cxx03-extra-copy.cpp +++ b/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-cxx03-extra-copy.cpp @@ -19,7 +19,7 @@ private: }; struct X3 { - X3(); + X3(); // expected-note{{requires 0 arguments, but 1 was provided}} private: X3(X3&); // expected-note{{candidate constructor not viable: expects an l-value for 1st argument}} @@ -42,8 +42,8 @@ struct X4 { // Check for "dangerous" default arguments that could cause recursion. struct X5 { - X5(); - X5(const X5&, const X5& = X5()); // expected-warning{{no viable constructor copying parameter of type 'X5'}} + X5(); // expected-note {{requires 0 arguments}} + X5(const X5&, const X5& = X5()); // expected-warning{{no viable constructor copying parameter of type 'X5'}} expected-note {{requires 2 arguments}} }; void g1(const X1&); diff --git a/clang/test/CXX/drs/dr0xx.cpp b/clang/test/CXX/drs/dr0xx.cpp index 3bb6701b32e..69cb776c330 100644 --- a/clang/test/CXX/drs/dr0xx.cpp +++ b/clang/test/CXX/drs/dr0xx.cpp @@ -643,8 +643,8 @@ namespace dr58 { // dr58: yes namespace dr59 { // dr59: yes template<typename T> struct convert_to { operator T() const; }; - struct A {}; // expected-note 2{{volatile qualifier}} - struct B : A {}; // expected-note 2{{volatile qualifier}} + struct A {}; // expected-note 2{{volatile qualifier}} expected-note 2{{requires 0 arguments}} + struct B : A {}; // expected-note 2{{volatile qualifier}} expected-note 2{{requires 0 arguments}} #if __cplusplus >= 201103L // move constructors // expected-note@-3 2{{volatile qualifier}} // expected-note@-3 2{{volatile qualifier}} @@ -902,7 +902,7 @@ namespace dr84 { // dr84: yes struct C {}; struct B { B(B&); // expected-note {{candidate}} - B(C); + B(C); // expected-note {{no known conversion from 'dr84::B' to 'dr84::C'}} operator C() const; }; A a; diff --git a/clang/test/CXX/drs/dr1xx.cpp b/clang/test/CXX/drs/dr1xx.cpp index 8d368a5a54e..60d6ccaa875 100644 --- a/clang/test/CXX/drs/dr1xx.cpp +++ b/clang/test/CXX/drs/dr1xx.cpp @@ -827,7 +827,7 @@ namespace dr177 { // dr177: yes struct B {}; struct A { A(A &); // expected-note {{not viable: expects an l-value}} - A(const B &); + A(const B &); // expected-note {{not viable: no known conversion from 'dr177::A' to}} }; B b; A a = b; // expected-error {{no viable constructor copying variable}} |

