1 /* Test for scanf formats. Formats using extensions to the standard
2 should be rejected in strict pedantic mode.
4 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
5 /* { dg-do compile } */
6 /* { dg-options "-std=iso9899:1990 -pedantic -Wformat" } */
11 foo (char **sp
, wchar_t **lsp
)
13 /* %a formats for allocation, only recognized in C90 mode, are a
16 scanf ("%as", sp
); /* { dg-warning "C" "%as" } */
17 scanf ("%aS", lsp
); /* { dg-warning "C" "%aS" } */
18 scanf ("%a[bcd]", sp
); /* { dg-warning "C" "%a[]" } */