• Home
  • Raw
  • Download

Lines Matching full:warning

31   printf(s); // expected-warning {{format string is not a string literal}}  in check_string_literal()
32 vprintf(s,ap); // expected-warning {{format string is not a string literal}} in check_string_literal()
33 fprintf(fp,s); // expected-warning {{format string is not a string literal}} in check_string_literal()
34 vfprintf(fp,s,ap); // expected-warning {{format string is not a string literal}} in check_string_literal()
35 asprintf(&b,s); // expected-warning {{format string is not a string lit}} in check_string_literal()
36 vasprintf(&b,s,ap); // expected-warning {{format string is not a string literal}} in check_string_literal()
37 sprintf(buf,s); // expected-warning {{format string is not a string literal}} in check_string_literal()
38 snprintf(buf,2,s); // expected-warning {{format string is not a string lit}} in check_string_literal()
39 __builtin___sprintf_chk(buf,0,-1,s); // expected-warning {{format string is not a string literal}} in check_string_literal()
40 __builtin___snprintf_chk(buf,2,0,-1,s); // expected-warning {{format string is not a string lit}} in check_string_literal()
41 vsprintf(buf,s,ap); // expected-warning {{format string is not a string lit}} in check_string_literal()
42 vsnprintf(buf,2,s,ap); // expected-warning {{format string is not a string lit}} in check_string_literal()
43 vsnprintf(buf,2,global_fmt,ap); // expected-warning {{format string is not a string literal}} in check_string_literal()
44 …__builtin___vsnprintf_chk(buf,2,0,-1,s,ap); // expected-warning {{format string is not a string li… in check_string_literal()
45 …__builtin___vsnprintf_chk(buf,2,0,-1,global_fmt,ap); // expected-warning {{format string is not a … in check_string_literal()
47 vscanf(s, ap); // expected-warning {{format string is not a string literal}} in check_string_literal()
51 "%*d", 1, 1); // no-warning in check_string_literal()
54 "%*d", 1, 1); // no-warning in check_string_literal()
59 printf("%*d", (unsigned) 1, 1); // no-warning in check_string_literal()
71 printf(s); // expected-warning {{format string is not a string literal}} in check_string_literal2()
72 vprintf(s,ap); // no-warning in check_string_literal2()
73 fprintf(fp,s); // expected-warning {{format string is not a string literal}} in check_string_literal2()
74 vfprintf(fp,s,ap); // no-warning in check_string_literal2()
75 asprintf(&b,s); // expected-warning {{format string is not a string lit}} in check_string_literal2()
76 vasprintf(&b,s,ap); // no-warning in check_string_literal2()
77 sprintf(buf,s); // expected-warning {{format string is not a string literal}} in check_string_literal2()
78 snprintf(buf,2,s); // expected-warning {{format string is not a string lit}} in check_string_literal2()
79 __builtin___vsnprintf_chk(buf,2,0,-1,s,ap); // no-warning in check_string_literal2()
81 vscanf(s, ap); // expected-warning {{format string is not a string literal}} in check_string_literal2()
85 printf(i == 1 ? "yes" : "no"); // no-warning in check_conditional_literal()
86 printf(i == 0 ? (i == 1 ? "yes" : "no") : "dont know"); // no-warning in check_conditional_literal()
87 …printf(i == 0 ? (i == 1 ? s : "no") : "dont know"); // expected-warning{{format string is not a st… in check_conditional_literal()
88 printf("yes" ?: "no %d", 1); // expected-warning{{data argument not used by format string}} in check_conditional_literal()
95 …printf("%n", b); // expected-warning{{format specifies type 'int *' but the argument has type 'cha… in check_writeback_specifier()
96 printf("%n", &x); // no-warning in check_writeback_specifier()
98 printf("%hhn", (signed char*)0); // no-warning in check_writeback_specifier()
99 printf("%hhn", (char*)0); // no-warning in check_writeback_specifier()
100 printf("%hhn", (unsigned char*)0); // no-warning in check_writeback_specifier()
101 …printf("%hhn", (int*)0); // expected-warning{{format specifies type 'signed char *' but the argume… in check_writeback_specifier()
103 printf("%hn", (short*)0); // no-warning in check_writeback_specifier()
104 printf("%hn", (unsigned short*)0); // no-warning in check_writeback_specifier()
105 …printf("%hn", (int*)0); // expected-warning{{format specifies type 'short *' but the argument has … in check_writeback_specifier()
107 printf("%n", (int*)0); // no-warning in check_writeback_specifier()
108 printf("%n", (unsigned int*)0); // no-warning in check_writeback_specifier()
109 …printf("%n", (char*)0); // expected-warning{{format specifies type 'int *' but the argument has ty… in check_writeback_specifier()
111 printf("%ln", (long*)0); // no-warning in check_writeback_specifier()
112 printf("%ln", (unsigned long*)0); // no-warning in check_writeback_specifier()
113 …printf("%ln", (int*)0); // expected-warning{{format specifies type 'long *' but the argument has t… in check_writeback_specifier()
115 printf("%lln", (long long*)0); // no-warning in check_writeback_specifier()
116 printf("%lln", (unsigned long long*)0); // no-warning in check_writeback_specifier()
117 …printf("%lln", (int*)0); // expected-warning{{format specifies type 'long long *' but the argument… in check_writeback_specifier()
119 printf("%qn", (long long*)0); // no-warning in check_writeback_specifier()
120 printf("%qn", (unsigned long long*)0); // no-warning in check_writeback_specifier()
121 …printf("%qn", (int*)0); // expected-warning{{format specifies type 'long long *' but the argument … in check_writeback_specifier()
123 …printf("%Ln", 0); // expected-warning{{length modifier 'L' results in undefined behavior or no eff… in check_writeback_specifier()
129 printf("%s%lb%d","unix",10,20); // expected-warning {{invalid conversion specifier 'b'}} in check_invalid_specifier()
130 fprintf(fp,"%%%l"); // expected-warning {{incomplete format specifier}} in check_invalid_specifier()
131 …sprintf(buf,"%%%%%ld%d%d", 1, 2, 3); // expected-warning{{format specifies type 'long' but the arg… in check_invalid_specifier()
132 …%ld%;%d", 1, 2, 3); // expected-warning{{format specifies type 'long' but the argument has type 'i… in check_invalid_specifier()
137 printf("\0this is bogus%d",1); // expected-warning {{string contains '\0'}} in check_null_char_string()
138 snprintf(b,10,"%%%%%d\0%d",1,2); // expected-warning {{string contains '\0'}} in check_null_char_string()
139 printf("%\0d",1); // expected-warning {{string contains '\0'}} in check_null_char_string()
146 vprintf("",ap); // expected-warning {{format string is empty}} in check_empty_format_string()
147 sprintf(buf, "", 1); // expected-warning {{format string is empty}} in check_empty_format_string()
152 sprintf(buf, ""); // no-warning in check_empty_format_string()
160 …printf(L"foo %d",2); // expected-warning {{incompatible pointer types}}, expected-warning {{should… in check_wide_string()
161 …vsprintf(b,L"bar %d",ap); // expected-warning {{incompatible pointer types}}, expected-warning {{s… in check_wide_string()
165 …printf("%*d"); // expected-warning {{'*' specified field width is missing a matching 'int' argumen… in check_asterisk_precision_width()
166 …printf("%.*d"); // expected-warning {{'.*' specified field precision is missing a matching 'int' a… in check_asterisk_precision_width()
167 printf("%*d",12,x); // no-warning in check_asterisk_precision_width()
168 …printf("%*d","foo",x); // expected-warning {{field width should have type 'int', but argument has … in check_asterisk_precision_width()
169 …printf("%.*d","foo",x); // expected-warning {{field precision should have type 'int', but argument… in check_asterisk_precision_width()
185 printf(s1); // no-warning in test_constant_bindings()
186 printf(s2); // no-warning in test_constant_bindings()
187 printf(s3); // expected-warning{{not a string literal}} in test_constant_bindings()
188 printf(s4); // expected-warning{{not a string literal}} in test_constant_bindings()
189 printf(s5); // expected-warning{{not a string literal}} in test_constant_bindings()
195 #pragma GCC diagnostic warning "-Wformat-security"
199 printf(P); // expected-warning {{format string is not a string literal (potentially insecure)}} in test9()
204 vprintf ("%*.*d", v8); // no-warning in torture()
209 printf("%s"); // expected-warning{{more '%' conversions than data arguments}} in test10()
210 printf("%@", 12); // expected-warning{{invalid conversion specifier '@'}} in test10()
211 printf("\0"); // expected-warning{{format string contains '\0' within the string body}} in test10()
212 printf("xs\0"); // expected-warning{{format string contains '\0' within the string body}} in test10()
213 …printf("%*d\n"); // expected-warning{{'*' specified field width is missing a matching 'int' argume… in test10()
214 …printf("%*.*d\n", x); // expected-warning{{'.*' specified field precision is missing a matching 'i… in test10()
215 …printf("%*d\n", f, x); // expected-warning{{field width should have type 'int', but argument has t… in test10()
216 …printf("%*.*d\n", x, f, x); // expected-warning{{field precision should have type 'int', but argum… in test10()
217 printf("%**\n"); // expected-warning{{invalid conversion specifier '*'}} in test10()
218 printf("%d%d\n", x); // expected-warning{{more '%' conversions than data arguments}} in test10()
219 printf("%d\n", x, x); // expected-warning{{data argument not used by format string}} in test10()
220 printf("%W%d\n", x, x); // expected-warning{{invalid conversion specifier 'W'}} in test10()
221 printf("%"); // expected-warning{{incomplete format specifier}} in test10()
222 printf("%.d", x); // no-warning in test10()
223 printf("%.", x); // expected-warning{{incomplete format specifier}} in test10()
224 …printf("%f", 4); // expected-warning{{format specifies type 'double' but the argument has type 'in… in test10()
225 printf("%qd", lli); // no-warning in test10()
226 …printf("%qd", x); // expected-warning{{format specifies type 'long long' but the argument has type… in test10()
227 …printf("%qp", (void *)0); // expected-warning{{length modifier 'q' results in undefined behavior o… in test10()
228 printf("hhX %hhX", (unsigned char)10); // no-warning in test10()
229 printf("llX %llX", (long long) 10); // no-warning in test10()
231 printf("%d", (unsigned char) 10); // no-warning in test10()
232 …printf("%d", (long long) 10); // expected-warning{{format specifies type 'int' but the argument ha… in test10()
233 printf("%Lf\n", (long double) 1.0); // no-warning in test10()
234 …printf("%f\n", (long double) 1.0); // expected-warning{{format specifies type 'double' but the arg… in test10()
236 printf("%.0Lf", (long double) 1.0); // no-warning in test10()
237 …printf("%c\n", "x"); // expected-warning{{format specifies type 'int' but the argument has type 'c… in test10()
238 …printf("%c\n", 1.23); // expected-warning{{format specifies type 'int' but the argument has type '… in test10()
239 printf("Format %d, is %! %f", 1, 2, 4.4); // expected-warning{{invalid conversion specifier '!'}} in test10()
245 …printf("%hhu", (short) 10); // expected-warning{{format specifies type 'unsigned char' but the arg… in should_understand_small_integers()
246 …printf("%hu\n", (unsigned char) 1); // expected-warning{{format specifies type 'unsigned short' bu… in should_understand_small_integers()
247 …printf("%hu\n", (uint8_t)1); // expected-warning{{format specifies type 'unsigned short' but the a… in should_understand_small_integers()
251 printf("%p", p); // no-warning in test11()
252 …printf("%p", 123); // expected-warning{{format specifies type 'void *' but the argument has type '… in test11()
253 …printf("%.4p", p); // expected-warning{{precision used with 'p' conversion specifier, resulting in… in test11()
254 …printf("%+p", p); // expected-warning{{flag '+' results in undefined behavior with 'p' conversion … in test11()
255 …printf("% p", p); // expected-warning{{flag ' ' results in undefined behavior with 'p' conversion … in test11()
256 …printf("%0p", p); // expected-warning{{flag '0' results in undefined behavior with 'p' conversion … in test11()
257 printf("%s", s); // no-warning in test11()
258 …printf("%+s", p); // expected-warning{{flag '+' results in undefined behavior with 's' conversion … in test11()
259 …printf("% s", p); // expected-warning{{flag ' ' results in undefined behavior with 's' conversion … in test11()
260 …printf("%0s", p); // expected-warning{{flag '0' results in undefined behavior with 's' conversion … in test11()
265 printf ("%.4s\n", buf); // no-warning in test12()
266 …printf ("%.4s\n", &buf); // expected-warning{{format specifies type 'char *' but the argument has … in test12()
269 …asprintf(&b, "%d", "asprintf"); // expected-warning{{format specifies type 'int' but the argument … in test12()
274 printf("bel: '0%hhd'\n", bel); // no-warning in test13()
275 …printf("x: '0%hhd'\n", x); // expected-warning {{format specifies type 'char' but the argument has… in test13()
283 asl_log(asl, 0, 3, "Error: %m"); // no-warning in test_asl()
284 asl_log(asl, 0, 3, "Error: %W"); // expected-warning{{invalid conversion specifier 'W'}} in test_asl()
295 printf("%S", s); // no-warning in test_unicode_conversions()
296 …printf("%s", s); // expected-warning{{format specifies type 'char *' but the argument has type 'wc… in test_unicode_conversions()
297 printf("%C", s[0]); // no-warning in test_unicode_conversions()
302 printf("%S", "hello"); // expected-warning{{but the argument has type 'char *'}} in test_unicode_conversions()
309 …printf("%0$", (int)2); // expected-warning{{position arguments in format strings start counting at… in test_positional_arguments()
310 …printf("%1$*0$d", (int) 2); // expected-warning{{position arguments in format strings start counti… in test_positional_arguments()
311 printf("%1$d", (int) 2); // no-warning in test_positional_arguments()
312 printf("%1$d", (int) 2, 2); // expected-warning{{data argument not used by format string}} in test_positional_arguments()
313 …printf("%1$d%1$f", (int) 2); // expected-warning{{format specifies type 'double' but the argument … in test_positional_arguments()
314 printf("%1$2.2d", (int) 2); // no-warning in test_positional_arguments()
315 printf("%2$*1$.2d", (int) 2, (int) 3); // no-warning in test_positional_arguments()
316 …printf("%2$*8$d", (int) 2, (int) 3); // expected-warning{{specified field width is missing a match… in test_positional_arguments()
317 printf("%%%1$d", (int) 2); // no-warning in test_positional_arguments()
318 printf("%1$d%%", (int) 2); // no-warning in test_positional_arguments()
324 myprintf_PR_6697("%s\n", 1, "foo"); // no-warning in test_pr_6697()
325 …myprintf_PR_6697("%s\n", 1, (int)0); // expected-warning{{format specifies type 'char *' but the a… in test_pr_6697()
328 myprintf_PR_6697("%1$s\n", 1, "foo"); // no-warning in test_pr_6697()
329 …myprintf_PR_6697("%2$s\n", 1, "foo"); // expected-warning{{data argument position '2' exceeds the … in test_pr_6697()
330 …myprintf_PR_6697("%18$s\n", 1, "foo"); // expected-warning{{data argument position '18' exceeds th… in test_pr_6697()
331 …myprintf_PR_6697("%1$s\n", 1, (int) 0); // expected-warning{{format specifies type 'char *' but th… in test_pr_6697()
335 fprintf(fp, "\%"); // expected-warning{{incomplete format specifier}} in rdar8026030()
340 …printf("%hhs", "foo"); // expected-warning{{length modifier 'hh' results in undefined behavior or … in bug7377_bad_length_mod_usage()
341 …printf("%1$zp", (void *)0); // expected-warning{{length modifier 'z' results in undefined behavior… in bug7377_bad_length_mod_usage()
342 printf("%ls", L"foo"); // no-warning in bug7377_bad_length_mod_usage()
343 printf("%#.2Lf", (long double)1.234); // no-warning in bug7377_bad_length_mod_usage()
346 …printf("%#p", (void *) 0); // expected-warning{{flag '#' results in undefined behavior with 'p' co… in bug7377_bad_length_mod_usage()
347 printf("%0d", -1); // no-warning in bug7377_bad_length_mod_usage()
348 …printf("%#n", (int *) 0); // expected-warning{{flag '#' results in undefined behavior with 'n' con… in bug7377_bad_length_mod_usage()
349 …printf("%-n", (int *) 0); // expected-warning{{flag '-' results in undefined behavior with 'n' con… in bug7377_bad_length_mod_usage()
350 printf("%-p", (void *) 0); // no-warning in bug7377_bad_length_mod_usage()
353 …printf("%.2c", 'a'); // expected-warning{{precision used with 'c' conversion specifier, resulting … in bug7377_bad_length_mod_usage()
354 …printf("%1n", (int *) 0); // expected-warning{{field width used with 'n' conversion specifier, res… in bug7377_bad_length_mod_usage()
355 …printf("%.9n", (int *) 0); // expected-warning{{precision used with 'n' conversion specifier, resu… in bug7377_bad_length_mod_usage()
358 printf("% +f", 1.23); // expected-warning{{flag ' ' is ignored when flag '+' is present}} in bug7377_bad_length_mod_usage()
359 printf("%+ f", 1.23); // expected-warning{{flag ' ' is ignored when flag '+' is present}} in bug7377_bad_length_mod_usage()
360 printf("%0-f", 1.23); // expected-warning{{flag '0' is ignored when flag '-' is present}} in bug7377_bad_length_mod_usage()
361 printf("%-0f", 1.23); // expected-warning{{flag '0' is ignored when flag '-' is present}} in bug7377_bad_length_mod_usage()
362 printf("%-+f", 1.23); // no-warning in bug7377_bad_length_mod_usage()
368 printf("%lc", c); // no-warning in pr7981()
369 printf("%lc", 1.0); // expected-warning{{the argument has type 'double'}} in pr7981()
370 printf("%lc", (char) 1); // no-warning in pr7981()
371 printf("%lc", &c); // expected-warning{{the argument has type 'wint_t *'}} in pr7981()
376 printf("%lc", c2); // no-warning in pr7981()
384 printf(0); // no-warning in rdar8269537()
393 rdar8332221_vprintf_scanf("%", ap, "%d", x); // expected-warning{{incomplete format specifier}} in rdar8332221()
405 printf("%'d\n", 123456789); // no-warning in posix_extensions()
406 printf("%'i\n", 123456789); // no-warning in posix_extensions()
407 printf("%'f\n", (float) 1.0); // no-warning in posix_extensions()
408 …printf("%'p\n", (void*) 0); // expected-warning{{results in undefined behavior with 'p' conversion… in posix_extensions()
414 #pragma GCC diagnostic warning "-Wformat"
418 …printf("%s", 1); // expected-warning{{format specifies type 'char *' but the argument has type 'in… in pr8486()
424 printf(__PRETTY_FUNCTION__); // no-warning in pr9314()
425 printf(__func__); // no-warning in pr9314()
431 …printf("%s", 2); // expected-warning{{format specifies type 'char *' but the argument has type 'in… in rdar9612060()
435 printf("%c", y); // no-warning in check_char()
436 printf("%hhu", x); // no-warning in check_char()
437 printf("%hhi", y); // no-warning in check_char()
438 printf("%hhi", x); // no-warning in check_char()
439 printf("%c", x); // no-warning in check_char()
440 printf("%hhu", y); // no-warning in check_char()
448 printf("%@", 12); // no-warning in test_suppress_invalid_specifier()
453 #pragma GCC diagnostic warning "-Wformat"
454 #pragma GCC diagnostic warning "-Wformat-security"
456 // Test that the printf call site is where the warning is attached. If the
460 printf(kFormat1, 0); // expected-warning{{more '%' conversions than data arguments}} in pr9751()
461 printf("%d %s\n", 0); // expected-warning{{more '%' conversions than data arguments}} in pr9751()
464 …printf(kFormat2, 1, "foo"); // expected-warning{{data argument position '18' exceeds the number of… in pr9751()
465 …printf("%18$s\n", 1, "foo"); // expected-warning{{data argument position '18' exceeds the number o… in pr9751()
468 printf(kFormat4, 5); // expected-warning{{invalid conversion specifier 'y'}} in pr9751()
469 printf("%y", 5); // expected-warning{{invalid conversion specifier 'y'}} in pr9751()
472 printf(kFormat5, 5); // expected-warning{{incomplete format specifier}} in pr9751()
473 printf("%.", 5); // expected-warning{{incomplete format specifier}} in pr9751()
476 …printf(kFormat6, 5); // expected-warning{{format specifies type 'char *' but the argument has type… in pr9751()
477 …printf("%s", 5); // expected-warning{{format specifies type 'char *' but the argument has type 'in… in pr9751()
480 …printf(kFormat7, 5); // expected-warning{{position arguments in format strings start counting at 1… in pr9751()
481 …printf("%0$", 5); // expected-warning{{position arguments in format strings start counting at 1 (n… in pr9751()
484 …printf(kFormat8, 4, 4); // expected-warning{{cannot mix positional and non-positional arguments in… in pr9751()
485 …printf("%1$d %d", 4, 4); // expected-warning{{cannot mix positional and non-positional arguments i… in pr9751()
488 printf(kFormat9, 4, 4); // expected-warning{{format string is empty}} in pr9751()
489 printf("", 4, 4); // expected-warning{{format string is empty}} in pr9751()
492 printf(kFormat10, 4); // expected-warning{{format string contains '\0' within the string body}} in pr9751()
493 printf("\0%d", 4); // expected-warning{{format string contains '\0' within the string body}} in pr9751()
496 …printf(kFormat11); // expected-warning{{'*' specified field width is missing a matching 'int' argu… in pr9751()
497 …printf("%*d"); // expected-warning{{'*' specified field width is missing a matching 'int' argument… in pr9751()
500 …printf(kFormat12, 4.4); // expected-warning{{field width should have type 'int', but argument has … in pr9751()
501 …printf("%*d", 4.4); // expected-warning{{field width should have type 'int', but argument has type… in pr9751()
505 …printf(kFormat13, p); // expected-warning{{precision used with 'p' conversion specifier, resulting… in pr9751()
506 …printf("%.3p", p); // expected-warning{{precision used with 'p' conversion specifier, resulting in… in pr9751()
509 …printf(kFormat14, "a"); // expected-warning{{flag '0' results in undefined behavior with 's' conve… in pr9751()
510 …printf("%0s", "a"); // expected-warning{{flag '0' results in undefined behavior with 's' conversio… in pr9751()
513 …printf(kFormat15, "a"); // expected-warning{{length modifier 'hh' results in undefined behavior or… in pr9751()
514 …printf("%hhs", "a"); // expected-warning{{length modifier 'hh' results in undefined behavior or no… in pr9751()
517 printf(kFormat16, 5); // expected-warning{{flag '0' is ignored when flag '-' is present}} in pr9751()
518 printf("%-0d", 5); // expected-warning{{flag '0' is ignored when flag '-' is present}} in pr9751()
522 printf(1 ? "yes %d" : "no %d"); // expected-warning 2{{more '%' conversions than data arguments}} in pr9751()
525 …printf(kFormat17, (int[]){0}); // expected-warning{{format specifies type 'unsigned short' but the… in pr9751()
527 …printf("%a", (long double)0); // expected-warning{{format specifies type 'double' but the argument… in pr9751()
531 printf(kFormat18, 0); // expected-warning{{format specifies type}} in pr9751()
536 0.0); // expected-warning{{format specifies}} in pr9751()
542 const char s3[2] = "s\0%s"; // expected-warning{{initializer-string for char array is too long}} in pr18905()
544 const char s5[0] = "%s"; // expected-warning{{initializer-string for char array is too long}} in pr18905()
547 printf(s1); // expected-warning{{format string contains '\0' within the string body}} in pr18905()
548 printf(s2); // expected-warning{{format string is not null-terminated}} in pr18905()
549 printf(s3); // no-warning in pr18905()
550 printf(s4); // no-warning in pr18905()
551 printf(s5); // expected-warning{{format string is not null-terminated}} in pr18905()
560 monformat("", 1); // expected-warning{{format string is empty}} in test_other_formats()
561 …monformat(str); // expected-warning{{format string is not a string literal (potentially insecure)}} in test_other_formats()
562 dateformat(""); // expected-warning{{format string is empty}} in test_other_formats()
563 dateformat(str); // no-warning (using strftime non-literal is not unsafe) in test_other_formats()
570 PRINT1("%d\n", x); // no-warning{{extra argument is system header is OK}} in test_unused_system_args()
591 test14_foo("%", "%d", p); // expected-warning{{incomplete format specifier}} in test14_zed()
592 test14_bar("%", "%d", p); // expected-warning{{incomplete format specifier}} in test14_zed()
597 …printf("%n", cip); // expected-warning{{format specifies type 'int *' but the argument has type 'c… in test_qualifiers()
598 …printf("%n", cvip); // expected-warning{{format specifies type 'int *' but the argument has type '… in test_qualifiers()
600 printf("%n", vip); // No warning. in test_qualifiers()
601 printf("%p", cip); // No warning. in test_qualifiers()
602 printf("%p", cvip); // No warning. in test_qualifiers()
607 printf("%n", (ip_t)0); // No warning. in test_qualifiers()
608 …printf("%n", (cip_t)0); // expected-warning{{format specifies type 'int *' but the argument has ty… in test_qualifiers()
612 #pragma GCC diagnostic warning "-Wformat-security"
617 …test_format_security_extra_args(string, 5); // expected-warning {{format string is not a string li… in test_format_security_pos()
619 #pragma GCC diagnostic warning "-Wformat-nonliteral"