summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/anonymous-struct-union.c
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/Sema/anonymous-struct-union.c
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/Sema/anonymous-struct-union.c')
-rw-r--r--clang/test/Sema/anonymous-struct-union.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/anonymous-struct-union.c b/clang/test/Sema/anonymous-struct-union.c
index b91426ca6c1..d9e08397f2d 100644
--- a/clang/test/Sema/anonymous-struct-union.c
+++ b/clang/test/Sema/anonymous-struct-union.c
@@ -101,4 +101,4 @@ struct s2 {
typedef struct {
int x;
} a_struct;
-int tmp = (a_struct) { .x = 0 }; // expected-error {{initializing 'int' from an expression of incompatible type 'a_struct'}}
+int tmp = (a_struct) { .x = 0 }; // expected-error {{initializing 'int' with an expression of incompatible type 'a_struct'}}
OpenPOWER on IntegriCloud