From 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 20 Feb 2011 13:06:31 +0000 Subject: Vendor import of clang trunk r126079: http://llvm.org/svn/llvm-project/cfe/trunk@126079 --- test/SemaCXX/cast-conversion.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/SemaCXX/cast-conversion.cpp') diff --git a/test/SemaCXX/cast-conversion.cpp b/test/SemaCXX/cast-conversion.cpp index d68e789..80707d1 100644 --- a/test/SemaCXX/cast-conversion.cpp +++ b/test/SemaCXX/cast-conversion.cpp @@ -8,14 +8,14 @@ struct A { A(R); }; -struct B { - B(A); +struct B { // expected-note 3 {{candidate constructor (the implicit copy constructor) not viable}} + B(A); // expected-note 3 {{candidate constructor not viable}} }; int main () { - B(10); // expected-error {{functional-style cast from 'int' to 'B' is not allowed}} - (B)10; // expected-error {{C-style cast from 'int' to 'B' is not allowed}} - static_cast(10); // expected-error {{static_cast from 'int' to 'B' is not allowed}} \\ + B(10); // expected-error {{no matching conversion for functional-style cast from 'int' to 'B'}} + (B)10; // expected-error {{no matching conversion for C-style cast from 'int' to 'B'}} + static_cast(10); // expected-error {{no matching conversion for static_cast from 'int' to 'B'}} \\ // expected-warning {{expression result unused}} } -- cgit v1.1