aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/convert-to-bool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/convert-to-bool.cpp')
-rw-r--r--test/SemaCXX/convert-to-bool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/convert-to-bool.cpp b/test/SemaCXX/convert-to-bool.cpp
index 100267c17f..74d925a3d5 100644
--- a/test/SemaCXX/convert-to-bool.cpp
+++ b/test/SemaCXX/convert-to-bool.cpp
@@ -49,7 +49,7 @@ void test_explicit_bool(ExplicitConvToBool ecb) {
}
void test_explicit_conv_to_ref(ExplicitConvToRef ecr) {
- int& i1 = ecr; // expected-error{{non-const reference to type 'int' cannot be initialized with a value of type 'struct ExplicitConvToRef'}}
+ int& i1 = ecr; // expected-error{{non-const lvalue reference to type 'int' cannot be initialized with a value of type 'struct ExplicitConvToRef'}}
int& i2(ecr); // okay
}
@@ -61,7 +61,7 @@ struct C {
};
void test_copy_init_conversions(C c) {
- A &a = c; // expected-error{{non-const reference to type 'struct A' cannot be initialized with a value of type 'struct C'}}
+ A &a = c; // expected-error{{non-const lvalue reference to type 'struct A' cannot be initialized with a value of type 'struct C'}}
B &b = b; // okay
}