From: NAKAMURA Takumi Date: Thu, 20 Mar 2014 10:54:53 +0000 (+0000) Subject: Make format-strings-fixit.c aware of "%hu" uint16_t on wchar_t for targeting win32. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6fe0ccf5fd46fc414b2356a20ef9fadb514ccf5;p=clang Make format-strings-fixit.c aware of "%hu" uint16_t on wchar_t for targeting win32. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204334 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/format-strings-fixit.c b/test/Sema/format-strings-fixit.c index d9d7fb3fba..341288366a 100644 --- a/test/Sema/format-strings-fixit.c +++ b/test/Sema/format-strings-fixit.c @@ -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);