summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/conditional-expr-3.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-09 17:53:29 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-09 17:53:29 +0000
commitb10646d4ce23bbed949861b3fcb71f1ff1b91c76 (patch)
tree0205c29f30f9661c355ced54f6b027cf822ec903 /clang/test/SemaObjC/conditional-expr-3.m
parentfb8b27d5303819ac6df89c1df07266151d9683bc (diff)
downloadbcm5719-llvm-b10646d4ce23bbed949861b3fcb71f1ff1b91c76.tar.gz
bcm5719-llvm-b10646d4ce23bbed949861b3fcb71f1ff1b91c76.zip
Improve diagnostics like "initializing <type> from an expression of
type..." with "initializing <type> with an expression of type...", which reads better. Thanks to John for the improved wording. llvm-svn: 100873
Diffstat (limited to 'clang/test/SemaObjC/conditional-expr-3.m')
-rw-r--r--clang/test/SemaObjC/conditional-expr-3.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/conditional-expr-3.m b/clang/test/SemaObjC/conditional-expr-3.m
index 9f34ca0e697..3b5f609e421 100644
--- a/clang/test/SemaObjC/conditional-expr-3.m
+++ b/clang/test/SemaObjC/conditional-expr-3.m
@@ -27,11 +27,11 @@ void f1(id x, A *a) {
}
void f2(id<P1> x) {
- id<P0> l = x; // expected-warning {{initializing 'id<P0>' from an expression of incompatible type 'id<P1>'}}
+ id<P0> l = x; // expected-warning {{initializing 'id<P0>' with an expression of incompatible type 'id<P1>'}}
}
void f3(A *a) {
- id<P1> l = a; // expected-warning {{ initializing 'id<P1>' from an expression of incompatible type 'A *'}}
+ id<P1> l = a; // expected-warning {{ initializing 'id<P1>' with an expression of incompatible type 'A *'}}
}
void f4(int cond, id x, A *a) {
OpenPOWER on IntegriCloud