]> granicus.if.org Git - clang/commitdiff
Fix test/Sema/format-strings-scanf.c
authorHans Wennborg <hans@hanshq.net>
Thu, 15 Dec 2011 11:43:45 +0000 (11:43 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 15 Dec 2011 11:43:45 +0000 (11:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146651 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/format-strings-scanf.c

index b20e1b00f4385068d66f98c28fe5d008779be2d1..d1374d4bf963980ae9926545f6ae5a2c23973c84 100644 (file)
@@ -73,6 +73,6 @@ void test_alloc_extension(char **sp, wchar_t **lsp) {
    * 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 **'}}
 }