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 | 08a41901e18aeb91b87d031b93df70374af02564 (patch) | |
tree | 7416b74f2ee31c6c794a7923e830ba57f5cef716 /test/Sema/anonymous-struct-union.c | |
parent | 47268a3f2843a8d64f3a6fef1e9a9dde1feb4a8c (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/anonymous-struct-union.c')
-rw-r--r-- | test/Sema/anonymous-struct-union.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/anonymous-struct-union.c b/test/Sema/anonymous-struct-union.c index b91426ca6c..d9e08397f2 100644 --- a/test/Sema/anonymous-struct-union.c +++ b/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'}} |