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/enum.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/enum.c')
-rw-r--r-- | clang/test/Sema/enum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/enum.c b/clang/test/Sema/enum.c index caab5d37562..ba4e56b907a 100644 --- a/clang/test/Sema/enum.c +++ b/clang/test/Sema/enum.c @@ -91,7 +91,7 @@ static enum e1 badfunc(struct s1 *q) { typedef enum { an_enumerator = 20 } an_enum; -char * s = (an_enum) an_enumerator; // expected-warning {{incompatible integer to pointer conversion initializing 'char *' from an expression of type 'an_enum'}} +char * s = (an_enum) an_enumerator; // expected-warning {{incompatible integer to pointer conversion initializing 'char *' with an expression of type 'an_enum'}} // PR4515 enum PR4515 {PR4515a=1u,PR4515b=(PR4515a-2)/2}; |