2 /* Make sure anticipated builtins are not considered before they are declared. */
3 /* { dg-do compile } */
4 /* { dg-options "-Wimplicit-function-declaration -fdiagnostics-show-caret" } */
6 int sscafn (const char *, const char *, ...);
12 return ssacnf (p
, "%d", &i
); /* { dg-warning "10: implicit declaration of function .ssacnf.; did you mean .sscafn.?" } */
13 /* { dg-begin-multiline-output "" }
14 return ssacnf (p, "%d", &i);
17 { dg-end-multiline-output "" } */
20 int scafn (const char *, ...);
21 int scanf (const char *, ...);
27 return sacnf ("%d", &i
); /* { dg-warning "10: implicit declaration of function .sacnf.; did you mean .scanf.?" } */
28 /* { dg-begin-multiline-output "" }
29 return sacnf ("%d", &i);
32 { dg-end-multiline-output "" } */