OSDN Git Service

* gcc.dg/pragma-init-fini.c: Use dg-warning in lieu of dg-error.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / format / ext-4.c
index c0cf740..c11c0ad 100644 (file)
@@ -3,14 +3,12 @@
 /* { dg-do compile } */
 /* { dg-options "-std=gnu89 -Wformat" } */
 
-typedef __WCHAR_TYPE__ wchar_t;
-
-extern int scanf (const char *, ...);
+#include "format.h"
 
 void
 foo (char **sp, wchar_t **lsp)
 {
-  /* %a formats for allocation, only recognised in C90 mode, are a
+  /* %a formats for allocation, only recognized in C90 mode, are a
      GNU extension.  Followed by other characters, %a is not treated
      specially.
   */