зеркало из https://github.com/microsoft/clang-1.git
clang/test/Sema/format-strings-scanf.c: Relax a couple of expressions with expected-warning-re to let matched for Win32 targets.
- format specifies type 'wchar_t **' (aka 'int **') but the argument has type 'float *' - format specifies type 'wchar_t **' (aka 'unsigned short **') but the argument has type 'float *' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
3c7f538a10
Коммит
eb3546eb1d
|
@ -107,9 +107,9 @@ void test_alloc_extension(char **sp, wchar_t **lsp, float *fp) {
|
|||
|
||||
// Test argument type check for the 'm' length modifier.
|
||||
scanf("%ms", fp); // expected-warning{{format specifies type 'char **' but the argument has type 'float *'}}
|
||||
scanf("%mS", fp); // expected-warning{{format specifies type 'wchar_t **' (aka 'int **') but the argument has type 'float *'}}
|
||||
scanf("%mS", fp); // expected-warning-re{{format specifies type 'wchar_t \*\*' \(aka '[^']+'\) but the argument has type 'float \*'}}
|
||||
scanf("%mc", fp); // expected-warning{{format specifies type 'char **' but the argument has type 'float *'}}
|
||||
scanf("%mC", fp); // expected-warning{{format specifies type 'wchar_t **' (aka 'int **') but the argument has type 'float *'}}
|
||||
scanf("%mC", fp); // expected-warning-re{{format specifies type 'wchar_t \*\*' \(aka '[^']+'\) but the argument has type 'float \*'}}
|
||||
scanf("%m[abc]", fp); // expected-warning{{format specifies type 'char **' but the argument has type 'float *'}}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче