[cfe-commits] r146651 - /cfe/trunk/test/Sema/format-strings-scanf.c

Hans Wennborg hans at hanshq.net
Thu Dec 15 03:43:45 PST 2011


Author: hans
Date: Thu Dec 15 05:43:45 2011
New Revision: 146651

URL: http://llvm.org/viewvc/llvm-project?rev=146651&view=rev
Log:
Fix test/Sema/format-strings-scanf.c

Modified:
    cfe/trunk/test/Sema/format-strings-scanf.c

Modified: cfe/trunk/test/Sema/format-strings-scanf.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings-scanf.c?rev=146651&r1=146650&r2=146651&view=diff
==============================================================================
--- cfe/trunk/test/Sema/format-strings-scanf.c (original)
+++ cfe/trunk/test/Sema/format-strings-scanf.c Thu Dec 15 05:43:45 2011
@@ -73,6 +73,6 @@
    * even when followed by an 's', 'S' or '[', which would cause it to be
    * parsed as a length modifier in C90. */
   scanf("%as", sp); // expected-warning{{conversion specifies type 'float *' but the argument has type 'char **'}}
-  scanf("%aS", lsp); // expected-warning{{conversion specifies type 'float *' but the argument has type 'wchar_t **' (aka 'int **')}}
+  scanf("%aS", lsp); // expected-warning{{conversion specifies type 'float *' but the argument has type 'wchar_t **'}}
   scanf("%a[bcd]", sp); // expected-warning{{conversion specifies type 'float *' but the argument has type 'char **'}}
 }





More information about the cfe-commits mailing list