summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/convert-to-bool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/convert-to-bool.cpp')
-rw-r--r--clang/test/SemaCXX/convert-to-bool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/convert-to-bool.cpp b/clang/test/SemaCXX/convert-to-bool.cpp
index 543f6b1f017..4b5002e44a0 100644
--- a/clang/test/SemaCXX/convert-to-bool.cpp
+++ b/clang/test/SemaCXX/convert-to-bool.cpp
@@ -44,7 +44,7 @@ struct ExplicitConvToRef {
void test_explicit_bool(ExplicitConvToBool ecb) {
bool b1(ecb); // okay
- bool b2 = ecb; // expected-error{{incompatible type initializing 'struct ExplicitConvToBool', expected 'bool'}}
+ bool b2 = ecb; // expected-error{{no viable conversion from 'struct ExplicitConvToBool' to 'bool'}}
accepts_bool(ecb); // expected-error{{no matching function for call to}}
}
OpenPOWER on IntegriCloud