Home | History | Annotate | Download | only in Sema

Lines Matching refs:sp

84 void test_scanlist(int *ip, char *sp, wchar_t *ls) {
86 scanf("%h[abc]", sp); // expected-warning{{length modifier 'h' results in undefined behavior or no effect with '[' conversion specifier}}
91 scanf("%[]% ]", sp); // no-warning
92 scanf("%[^]% ]", sp); // no-warning
93 scanf("%[a^]% ]", sp); // expected-warning {{invalid conversion specifier ' '}}
96 void test_alloc_extension(char **sp, wchar_t **lsp, float *fp) {
100 scanf("%as", sp); // expected-warning{{format specifies type 'float *' but the argument has type 'char **'}}
102 scanf("%a[bcd]", sp); // expected-warning{{format specifies type 'float *' but the argument has type 'char **'}}
106 scanf("%ms", sp); // No warning.
108 scanf("%mc", sp); // No warning.
110 scanf("%m[abc]", sp); // No warning.
111 scanf("%md", sp); // expected-warning{{length modifier 'm' results in undefined behavior or no effect with 'd' conversion specifier}}