From b10646d4ce23bbed949861b3fcb71f1ff1b91c76 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 9 Apr 2010 17:53:29 +0000 Subject: Improve diagnostics like "initializing from an expression of type..." with "initializing with an expression of type...", which reads better. Thanks to John for the improved wording. llvm-svn: 100873 --- clang/test/Sema/enum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Sema/enum.c') 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}; -- cgit v1.2.3