summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/convert-to-bool.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-03-10 11:27:22 +0000
committerJohn McCall <rjmccall@apple.com>2010-03-10 11:27:22 +0000
commit85f90559550563863522a58a87fdc4e46e95794b (patch)
tree60f75b5419f63aa12806b5720863118e80ee658e /clang/test/SemaCXX/convert-to-bool.cpp
parente35eabdd69d397db32c0b5b29a96fbcacdd6ea18 (diff)
downloadbcm5719-llvm-85f90559550563863522a58a87fdc4e46e95794b.tar.gz
bcm5719-llvm-85f90559550563863522a58a87fdc4e46e95794b.zip
When pretty-printing tag types, only print the tag if we're in C (and
therefore not creating ElaboratedTypes, which are still pretty-printed with the written tag). Most of these testcase changes were done by script, so don't feel too sorry for my fingers. llvm-svn: 98149
Diffstat (limited to 'clang/test/SemaCXX/convert-to-bool.cpp')
-rw-r--r--clang/test/SemaCXX/convert-to-bool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/convert-to-bool.cpp b/clang/test/SemaCXX/convert-to-bool.cpp
index 4b5002e44a0..4cd22e90c0e 100644
--- a/clang/test/SemaCXX/convert-to-bool.cpp
+++ b/clang/test/SemaCXX/convert-to-bool.cpp
@@ -44,12 +44,12 @@ struct ExplicitConvToRef {
void test_explicit_bool(ExplicitConvToBool ecb) {
bool b1(ecb); // okay
- bool b2 = ecb; // expected-error{{no viable conversion from 'struct ExplicitConvToBool' to 'bool'}}
+ bool b2 = ecb; // expected-error{{no viable conversion from 'ExplicitConvToBool' to 'bool'}}
accepts_bool(ecb); // expected-error{{no matching function for call to}}
}
void test_explicit_conv_to_ref(ExplicitConvToRef ecr) {
- int& i1 = ecr; // expected-error{{non-const lvalue reference to type 'int' cannot bind to a value of unrelated type 'struct ExplicitConvToRef'}}
+ int& i1 = ecr; // expected-error{{non-const lvalue reference to type 'int' cannot bind to a value of unrelated type 'ExplicitConvToRef'}}
int& i2(ecr); // okay
}
@@ -61,7 +61,7 @@ struct C {
};
void test_copy_init_conversions(C c) {
- A &a = c; // expected-error{{no viable conversion from 'struct C' to 'struct A'}}
+ A &a = c; // expected-error{{no viable conversion from 'C' to 'A'}}
B &b = b; // okay
}
OpenPOWER on IntegriCloud