r204334 - Make format-strings-fixit.c aware of "%hu" uint16_t on wchar_t for targeting win32.

NAKAMURA Takumi geek4civic at gmail.com
Thu Mar 20 03:54:53 PDT 2014


Author: chapuni
Date: Thu Mar 20 05:54:53 2014
New Revision: 204334

URL: http://llvm.org/viewvc/llvm-project?rev=204334&view=rev
Log:
Make format-strings-fixit.c aware of "%hu" uint16_t on wchar_t for targeting win32.

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

Modified: cfe/trunk/test/Sema/format-strings-fixit.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings-fixit.c?rev=204334&r1=204333&r2=204334&view=diff
==============================================================================
--- cfe/trunk/test/Sema/format-strings-fixit.c (original)
+++ cfe/trunk/test/Sema/format-strings-fixit.c Thu Mar 20 05:54:53 2014
@@ -225,8 +225,8 @@ void test2(int intSAParm[static 2]) {
 // CHECK: scanf("%99s", str);
 // CHECK: scanf("%s", vstr);
 // CHECK: scanf("%99s", str);
-// CHECK: scanf("%d", wstr);
-// CHECK: scanf("%d", wstr);
+// CHECK: scanf("{{%d|%hu}}", wstr);
+// CHECK: scanf("{{%d|%hu}}", wstr);
 // CHECK: scanf("%99s", str);
 // CHECK: scanf("%hd", &shortVar);
 // CHECK: scanf("%hu", &uShortVar);





More information about the cfe-commits mailing list