1 /* Test for scanf formats. %a extensions. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3 /* { dg-do compile } */
4 /* { dg-options "-std=gnu89 -Wformat" } */
6 typedef __WCHAR_TYPE__ wchar_t;
8 extern int scanf (const char *, ...);
11 foo (char **sp, wchar_t **lsp)
13 /* %a formats for allocation, only recognised in C90 mode, are a
14 GNU extension. Followed by other characters, %a is not treated
19 scanf ("%a[bcd]", sp);