diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-09 17:53:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-09 17:53:29 +0000 |
commit | b10646d4ce23bbed949861b3fcb71f1ff1b91c76 (patch) | |
tree | 0205c29f30f9661c355ced54f6b027cf822ec903 /clang/test/Sema/struct-compat.c | |
parent | fb8b27d5303819ac6df89c1df07266151d9683bc (diff) | |
download | bcm5719-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/Sema/struct-compat.c')
-rw-r--r-- | clang/test/Sema/struct-compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/struct-compat.c b/clang/test/Sema/struct-compat.c index ce63956c955..65bef9f6055 100644 --- a/clang/test/Sema/struct-compat.c +++ b/clang/test/Sema/struct-compat.c @@ -13,5 +13,5 @@ struct x {int a;} *c = b; // expected-warning {{incompatible pointer types}} struct x {int a;} r; int b() { -struct x {char x;} s = r; // expected-error {{initializing 'struct x' from an expression of incompatible type 'struct x'}} +struct x {char x;} s = r; // expected-error {{initializing 'struct x' with an expression of incompatible type 'struct x'}} } |