2 /* Forget to include any standard headers, all for built-in functions.
3 Rely on -Wimplicit-function-declaration for fixit hints, not on
4 -Wbuiltin-declaration-mismatch (which misses abs, isdigit, putchar). */
6 /* { dg-options "-fdiagnostics-show-caret -fdiagnostics-show-line-numbers -Wimplicit-function-declaration -Wno-builtin-declaration-mismatch" } */
11 if (isdigit (m
[0])) /* { dg-warning "implicit declaration of function" } */
12 /* { dg-begin-multiline-output "" }
13 11 | if (isdigit (m[0]))
15 +++ |+#include <ctype.h>
17 { dg-end-multiline-output "" } */
19 return abs (i
); /* { dg-warning "implicit declaration of function" } */
20 /* { dg-begin-multiline-output "" }
23 +++ |+#include <stdlib.h>
25 { dg-end-multiline-output "" } */
28 putchar (m
[0]); /* { dg-warning "implicit declaration of function" } */
29 /* { dg-begin-multiline-output "" }
32 +++ |+#include <stdio.h>
34 { dg-end-multiline-output "" } */